Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Obtain PR Title from Bitbucket Pipeline

I have a pipeline that runs a script when pull requests are merged to the master branch. I want to obtain the title of that PR so I can use it to rename the generated artifact at the end of the deployment script. I know I can use the BITBUCKET_PR_ID variable to obtain the PR's ID, but I can only use this variable on pull request pipelines, and not the branch pipeline I'm using.

Any suggestions?

1 answer

0 votes
Caroline R Atlassian Team Nov 23, 2021

Hi, @Kevin Shelley! Welcome to the community! 

In order to better understand your use case, would you mind sharing your YAML file with us? 

In case you don't want to share this here, I see that all the repos you have access to are under a workspace that is on the Premium plan, so I would suggest that you open a support ticket with us, so we can access this YAML file internally to further understand your business case and better guide you on this. 

You can open a support ticket via, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as the product. Please make sure to also give the repository name in question. The support ticket will be visible only to you and Atlassian staff, and with an open support ticket, the engineer handling your case will be able to access the YAML file and help you. 

Please feel free to share any questions or concerns regarding this case. 

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,262 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you