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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.