Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-40255] Changed behavior for WorkflowJob.getSCMs(), not it ch…
…ecks for successful build first.
  • Loading branch information
jonsten committed Dec 7, 2016
1 parent 139ac7e commit 0b04f3d
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -537,7 +537,10 @@ public void replaceAction(Action a) {
}

@Override public Collection<? extends SCM> getSCMs() {
WorkflowRun b = getLastCompletedBuild();
WorkflowRun b = getLastSuccessfulBuild();
if (b == null) {
b = getLastCompletedBuild();
}
if (b == null) {
return Collections.emptySet();
}
Expand Down

0 comments on commit 0b04f3d

Please sign in to comment.