Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Component/s: jira-ext-plugin
-
Labels:None
-
Environment:Dev
-
Similar Issues:
Description
Using plugin as "Update JIRA issues", DIscover Issues by "Mentioned somewhere in commit message"
Plugin seems to fail to extract JIRA ticket in certain conditions, like example shown below
where Commit message contains "Message...ticket#..3 spaces"
If I add \n to the end - jira plugin parses the commit line fine and extracts JIRA ticket fine
Commit string in GIT (shown in single quotes):
_____________________________
'Testing JIRA (ticket with a few spaces at the end and no EOL) SBUSWIT-141 '
Jenkins output (fails to show JIRA ticket SBUSWIT-141 and ticket is not updated)
__________________________
14:26:14 Updating JIRA tickets
14:26:14 ChangeLogSet class: class hudson.plugins.git.GitChangeSetList
14:26:14 Operation: Add a comment
14:26:14 Operation: Transition tickets
14:26:14 Finish updating JIRA tickets
14:26:14 Collecting metadata...
14:26:14 Metadata collection done.
14:26:14 Finished: SUCCESS
Hi there! Owner here - I'm not able to reproduce. Can you please go to <jenkins-url>/configure and check that you have 'Ticket Pattern' configured to match the issue keys you are trying to search for? (e.g, SBUSWIT-).
If yes, and the problem persists, please include the following to help me debug:
Thanks!