The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain PR Title from Bitbucket Pipeline

Kevin Shelley
November 17, 2021

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Caroline R
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 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 https://support.atlassian.com/contact/#/, 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,
Caroline

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events