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

Regex match fails - "Mentioned somewhere in commit message"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • jira-ext-plugin
    • None

      Regex matching fails to match pattern found in log message.

      Jenkins version 2.7.1
      Jira-ext plugin version 0.5

      Jira-ext plugin settings:

      jira-ext Config
      JIRA Base URL VALID_URL (tested with find custom fields)
      JIRA Username VALID_USER (see above)
      JIRA Password VALID_PASSWD (see above)
      Ticket Pattern EXITEVOISSUES-,EXITEVODEV-
      Verbose Logging (Enabled)
      Timeout 10

      svn log message (verbose)
      ------------------------------------------------------------------------
      r16769 | nb79311 | 2016-07-21 12:09:54 +0200 (Thu, 21 Jul 2016) | 2 lines
      Changed paths:
      M /trunk/src/CMakeLists.txt

      Jira key: EXITEVODEV-1309
      Comments: Test automatic Jira update
      ------------------------------------------------------------------------

      Output:

      Updating JIRA tickets
      ChangeLogSet class: class hudson.scm.SubversionChangeLogSet
      ERROR Updating jira notifications
      java.lang.IllegalStateException: No match found
      at java.util.regex.Matcher.group(Matcher.java:536)
      at org.jenkinsci.plugins.jiraext.view.MentionedInCommitStrategy.getJiraIssuesFromChangeSet(MentionedInCommitStrategy.java:111)
      at org.jenkinsci.plugins.jiraext.view.AbstractParsingIssueStrategy.getJiraCommits(AbstractParsingIssueStrategy.java:60)
      at org.jenkinsci.plugins.jiraext.view.JiraExtBuildStep.perform(JiraExtBuildStep.java:59)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.Build$BuildExecution.build(Build.java:205)
      at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Operation: Update a Field
      Finish updating JIRA tickets

            dalvizu Dan Alvizu
            smouch Smouch Smouch
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: