Skip to content

Commit ca927e3

Browse files
authored
Do not inspect non-AbstractProject for Computer.getBuilds (#10587)
2 parents e97adbd + e52d021 commit ca927e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/hudson/model/Computer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ public List<AbstractProject> getTiedJobs() {
782782
}
783783

784784
public RunList getBuilds() {
785-
return RunList.fromJobs((Iterable) Jenkins.get().allItems(Job.class)).node(getNode());
785+
return RunList.fromJobs((Iterable) Jenkins.get().allItems(AbstractProject.class)).node(getNode());
786786
}
787787

788788
/**

0 commit comments

Comments
 (0)