Skip to content

Commit

Permalink
[FIXED JENKINS-48214] Organization folders should handle events for c…
Browse files Browse the repository at this point in the history
…hildren that are non-buildable
  • Loading branch information
stephenc committed Dec 4, 2017
1 parent 5f1a1af commit ac22398
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/jenkins/branch/OrganizationFolder.java
Expand Up @@ -531,10 +531,11 @@ public String getPronoun() {
*/
@Override
public List<SCMSource> getSCMSources() {
// Probably unused unless onSCMSourceUpdated implemented, but just in case:
Set<SCMSource> result = new HashSet<SCMSource>();
for (MultiBranchProject<?,?> child : getItems()) {
result.addAll(child.getSCMSources());
if (child.isBuildable()) {
result.addAll(child.getSCMSources());
}
}
return new ArrayList<SCMSource>(result);
}
Expand Down

0 comments on commit ac22398

Please sign in to comment.