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);
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