Forums

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

Is the project Key available in a Bitbucket Pipeline?

Serge Liberloo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 8, 2019

When releasing a project with maven and when the repository is protected with a commit hook that requires an issue number, it would be interesting to get the projects key as a parameter in your bitbucket pipeline.

If it would be available, it would be possible to set a default scmCommitPrefix using this parameter.

 

1 answer

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

Hello Serge,

I'm assuming this is for a Jira project?

There is currently no automatic way to get the Jira project key within a Pipelines build.

You could consider adding the Jira issue to the commit message itself, which will also automatically link in the URL with your Jira project in the UI, if you have set up the integration

You can also open a feature request for adding the Jira project/issue number as a Pipelines environment variable: https://bitbucket.org/site/master/issues/new

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events