Currently there are BITBUCKET_REPO_SLUG and BITBUCKET_REPO_SLUG but not the repo name.
At the moment the workaround is to add something like this in a build step.
REPO=$(echo $BITBUCKET_REPO_SLUG | sed "s/$BITBUCKET_REPO_SLUG\///g")
Hi Daniel,
Can you please create a new issue with the component as 'Pipelines' on our public issue tracker and include a comment explaining your use case for the repo name as an environment variable? This will help us to keep track of this feature request.
Thanks,
Aneita
Adding on to Aneita's answer, for now you can also parse out the repository from the Git remote URL as it has the repository link in there. This will allow you to have a repo name instead of the uuid.
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.