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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.