Can you please expose BITBUCKET_REPO_NAME in pipeline builds?

Daniel Whatmuff
Contributor
February 28, 2018

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")

 

2 answers

1 vote
Aneita
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2018

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

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2018

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events