Skip to content
Permalink
Browse files

[FIXED JENKINS-42234] Add the isMatch guard

  • Loading branch information
stephenc committed Feb 21, 2017
1 parent 81e9fe5 commit 4b0871555a30ef72fcabe940f78c96e97bb2fca8
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/main/java/jenkins/branch/MultiBranchProject.java
@@ -1319,11 +1319,13 @@ private int processHeadUpdate(SCMHeadEvent<?> event, TaskListener global, String
candidateNames.clear();
revisionMaps.clear();
for (SCMSource source : p.getSCMSources()) {
Map<SCMHead, SCMRevision> eventHeads = event.heads(source);
if (!eventHeads.isEmpty()) {
revisionMaps.put(source, eventHeads);
for (SCMHead h: eventHeads.keySet()) {
candidateNames.add(h.getName());
if (event.isMatch(source)) {
Map<SCMHead, SCMRevision> eventHeads = event.heads(source);
if (!eventHeads.isEmpty()) {
revisionMaps.put(source, eventHeads);
for (SCMHead h : eventHeads.keySet()) {
candidateNames.add(h.getName());
}
}
}
}

0 comments on commit 4b08715

Please sign in to comment.
You can’t perform that action at this time.