-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
Jenkins ver. 2.138.2
jira-plugin version 3.0.3
jira-plugin works fine from a freestyle job, but is not working properly from a pipeline job.
I am comparing a freestyle job using the {{"JIRA: Update relevant issues" }}post-build step with a pipeline job using the jiraIssueSelector pipeline step.
When run on a commit with a commit message of "DEVO-2398 DEVO-2399", the freestyle job correctly gives me the output
[JIRA] Updating issue DEVO-2399
[JIRA] Updating issue DEVO-2398
When I run against the same commit message in the pipeline job, the jiraIssueSelector is not able to identify the Jira items.
I put the following in my Jenkinsfile:
{{def issueKeys = jiraIssueSelector(issueSelector: [$class: 'DefaultIssueSelector']) }}
echo "${issueKeys.size()}"
and I get the output
[Pipeline] jiraIssueSelector
[Pipeline] echo
0
The jiraIssueSelector is not finding any jiraIssues in the commit message.
The globally configured "issue pattern" is left blank, so it is left using the default ([a-zA-Z][a-zA-Z0-9_]+-[1-9][0-9]*)([^.]|\.[^0-9]|\.$|$)