Skip to content

Commit

Permalink
Merge pull request #122 from luke-tsekouras-sirca/master
Browse files Browse the repository at this point in the history
Build jobs can be sorted by their Full Name (including the folder name)
  • Loading branch information
jan-molak committed Jan 24, 2015
2 parents a9084b1 + 98ebe0a commit f170880
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.smartcodeltd.jenkinsci.plugins.buildmonitor.order;

import hudson.model.AbstractProject;

import java.util.Comparator;

public class ByFullName implements Comparator<AbstractProject> {
@Override
public int compare(AbstractProject a, AbstractProject b) {
return a.getFullName().compareToIgnoreCase(b.getFullName());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<select name="order" class="setting-input">
<f:option value="ByName" selected='${it.currentOrder()=="ByName"}'>${%Name}</f:option>
<f:option value="ByDisplayName" selected="${it.currentOrder()=='ByDisplayName'}">${%Display name}</f:option>
<f:option value="ByFullName" selected="${it.currentOrder()=='ByFullName'}">${%Full name}</f:option>
</select>
</f:entry>

Expand Down

0 comments on commit f170880

Please sign in to comment.