jenkinsci / atlassian-jira-software-cloud-plugin

Atlassian Jira Software Cloud Plugin
https://plugins.jenkins.io/atlassian-jira-software-cloud/
Apache License 2.0
43 stars 46 forks source link

ARC-1510: extract issue keys from env vars #90

Closed thombergs closed 1 year ago

thombergs commented 1 year ago

There's an open support case where the Jenkins API returns something like "PR-1" as the branch name when the branch is from a pull request. This means that the correct issue key will never be extracted from the branch name in these cases.

This PR also looks for issue keys in the env vars BRANCH_NAME and CHANGE_BRANCH to avoid this problem

thombergs commented 1 year ago

closing because of mysteriously failing tests