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

Jira Site Issue Pattern Default not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: jira-plugin
    • Labels:
      None
    • Environment:
      Windows XP, Java 6
    • Similar Issues:

      Description

      When leaving the Jira Issue Pattern empty on the global configuration page, the instance variable named userPattern on the JiraSite class is set to empty string instead of null. Therefore, the findIssues method of the Updater class does not apply the proper pattern default. Maybe the constructor of JiraSite should contain the following:

      this.userPattern = Util.fixEmpty(userPattern);

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : kutzi
          Path:
          trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/JiraChangeLogAnnotator.java
          trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/JiraSite.java
          trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/Updater.java
          trunk/hudson/plugins/jira/src/test/java/hudson/plugins/jira/MockJiraSite.java
          trunk/hudson/plugins/jira/src/test/java/hudson/plugins/jira/UpdaterTest.java
          http://jenkins-ci.org/commit/30365
          Log:
          [jira] [FIXED JENKINS-6264] default pattern didn't work. Also make sure that pattern is not recompiled for every build

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kutzi Path: trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/JiraChangeLogAnnotator.java trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/JiraSite.java trunk/hudson/plugins/jira/src/main/java/hudson/plugins/jira/Updater.java trunk/hudson/plugins/jira/src/test/java/hudson/plugins/jira/MockJiraSite.java trunk/hudson/plugins/jira/src/test/java/hudson/plugins/jira/UpdaterTest.java http://jenkins-ci.org/commit/30365 Log: [jira] [FIXED JENKINS-6264] default pattern didn't work. Also make sure that pattern is not recompiled for every build

            People

            • Assignee:
              kutzi kutzi
              Reporter:
              gmlongo gmlongo
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: