Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33856

jira-ext-plugin fails to parse commit message for JIRA ticket in certain patterns

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • jira-ext-plugin
    • None
    • Dev

      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

            Unassigned Unassigned
            sleonovich Sergey Leonovich
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: