Skip to content
Permalink
Browse files
[FIXED JENKINS-17451] "projects tied to slave" shows unrelated maven
module jobs. shows TopLevelItem only.

Restricts displayed projects to TopLevelItem only.
  • Loading branch information
Vlatombe committed Jun 10, 2013
1 parent f7330d7 commit 9cb0d11f5adde14d07527838132af9774074c846
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/model/Label.java
@@ -339,7 +339,7 @@ private String toString(Collection<? extends ModelObject> model) {
public List<AbstractProject> getTiedJobs() {
List<AbstractProject> r = new ArrayList<AbstractProject>();
for (AbstractProject<?,?> p : Jenkins.getInstance().getAllItems(AbstractProject.class)) {
if(this.equals(p.getAssignedLabel()))
if(p instanceof TopLevelItem && this.equals(p.getAssignedLabel()))
r.add(p);
}
return r;

0 comments on commit 9cb0d11

Please sign in to comment.