Is there way to get Repository name in bitbucket pipeline script ?
For example we can access branch name is building by using env $BITBUCKET_BRANCH, similarly is any env variable name for repo name ?
such as BITBUCKET_REPOSITORY ?
Hi @Mariya,
you can use $BITBUCKT_REPO_SLUG
A full list of environment variables can be found here: https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html
Is there a reason why $BITBUCKET_REPO_SLUG turns the string to lowercase?
This ist actually a Problem since I need the Slug in the Pipline to create a folder. The Folder is a Pluginname to the same time and if the CamelCase structure does not fit to the files inside the plugin, the plugin wont work.
Sadly i always have to create project variable with the repo name...
Is there a way to prevent lowercasing the slug? This would save me from editing the pipeline file for every project!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.