Skip to content

Commit

Permalink
Merge pull request #271 from abayer/jenkins-29326
Browse files Browse the repository at this point in the history
[JENKINS-29326] Don't add duplicate BuildData (downstream)
Originally-Committed-As: 3840d8ca847ed0ea8097c2f62e7b21504190afad
  • Loading branch information
abayer committed Dec 16, 2015
2 parents 6d292e4 + 82b41a7 commit ec2575b
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -71,6 +71,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -444,11 +445,11 @@ public void addTrigger(Trigger trigger) {
if (b == null) {
return Collections.emptySet();
}
List<SCM> scms = new LinkedList<SCM>();
Map<String,SCM> scms = new LinkedHashMap<String,SCM>();
for (WorkflowRun.SCMCheckout co : b.checkouts(null)) {
scms.add(co.scm);
scms.put(co.scm.getKey(), co.scm);
}
return scms;
return scms.values();
}

public @CheckForNull SCM getTypicalSCM() {
Expand Down

0 comments on commit ec2575b

Please sign in to comment.