Skip to content
Permalink
Browse files
Merge pull request #65 from jenkinsci/feature/JENKINS-51521
JENKINS-51521: Default value for sortMode
  • Loading branch information
klimas7 committed May 24, 2018
2 parents 2369bfe + 0c75bbf commit 534a2fc768b45d9b03514718824f8e48aacd0490
@@ -202,7 +202,7 @@ public void setBranch(String nameOfBranch) {
}

public SortMode getSortMode() {
return this.sortMode;
return this.sortMode == null ? SortMode.NONE : this.sortMode;
}

public void setSortMode(SortMode sortMode) {
@@ -557,7 +557,7 @@ private GitClient getGitClient(final JobWrapper jobWrapper, FilePathWrapper work

ArrayList<String> tags = new ArrayList<String>(set);

if (sortMode.getIsUsingSmartSort()) {
if (getSortMode().getIsUsingSmartSort()) {
Collections.sort(tags, new SmartNumberStringComparer());
} else {
Collections.sort(tags);

0 comments on commit 534a2fc

Please sign in to comment.