Skip to content
Permalink
Browse files
JENKINS-51521: Default value for sortMode
  • Loading branch information
klimas7 committed May 24, 2018
1 parent 2369bfe commit 0c75bbfca2c894c7ccabefe528090b3813f15987
@@ -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 0c75bbf

Please sign in to comment.