Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Pipelines: Get Project Name

Joseph Robbins July 20, 2023

Hi, I am trying to find a way to access the name of the project my repo belongs to in pipelines. I am aware that I have access to the project's key via the BITBUCKET_PROJECT_KEY variable as documented here: https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/ . However, I want the name rather than the key, is there any way to do this apart from using the REST API to look it up using the key? Thanks!

1 answer

1 vote
Joris Vleminckx July 20, 2023

Hmm, maybe you can set it as a repo variable? Bit awkward but if it's just a few repos, it should be easily done.

Joseph Robbins July 21, 2023

Yea, I can definitely do that but was hoping there might be a way to get it automatically I hadn't thought of, thanks for the reply!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events