Skip to content

Commit

Permalink
Merge pull request #15 from jonesbusy/feature/display-all-items
Browse files Browse the repository at this point in the history
JENKINS-20283 Display all items on widget if not filtering by view
  • Loading branch information
jonesbusy authored Apr 25, 2023
2 parents 0973198 + 628345d commit b4a4946
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/nextexecutions/NextBuilds.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
*
*/
@ExportedBean(defaultVisibility = 2)
@SuppressWarnings("rawtypes")
public class NextBuilds implements Comparable, Describable<NextBuilds> {
private ParameterizedJobMixIn.ParameterizedJob project;
private String name;
private Calendar date;

public NextBuilds(ParameterizedJobMixIn.ParameterizedJob project, Calendar date) {
this.project = project;
this.name = Util.escape(project.getDisplayName());
this.name = Util.escape(project.getFullDisplayName());
this.date = date;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.util.Collections;
import java.util.List;
import java.util.Vector;
import java.util.logging.Logger;
import jenkins.model.Jenkins;
import jenkins.model.ParameterizedJobMixIn;
import org.kohsuke.stapler.Stapler;
Expand All @@ -38,8 +37,8 @@
*/
@ExportedBean
@Extension
@SuppressWarnings("rawtypes")
public class NextExecutionsWidget extends Widget {
private static final Logger LOGGER = Logger.getLogger(NextExecutionsWidget.class.getName());

protected Class<? extends Trigger> triggerClass;

Expand Down Expand Up @@ -78,7 +77,7 @@ public List<NextBuilds> getBuilds() {
}
l = vector;
} else {
l = j.getItems(ParameterizedJobMixIn.ParameterizedJob.class);
l = j.getAllItems(ParameterizedJobMixIn.ParameterizedJob.class);
}

for (ParameterizedJobMixIn.ParameterizedJob project : l) {
Expand Down

0 comments on commit b4a4946

Please sign in to comment.