Skip to content

Commit

Permalink
Fix JENKINS-12504
Browse files Browse the repository at this point in the history
  • Loading branch information
gboissinot committed Apr 20, 2012
1 parent 29c9f64 commit 7a5165b
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -57,9 +57,7 @@ public final boolean isDisplayGraph() {
}

public Integer getLastResultBuild() {
for (AbstractBuild<?, ?> b = project.getLastBuild(); b != null; b = b.getPreviousNotFailedBuild()) {
if (b.getResult() == Result.FAILURE)
continue;
for (AbstractBuild<?, ?> b = project.getLastBuild(); b != null; b = b.getPreviousBuiltBuild()) {
CppcheckBuildAction r = b.getAction(CppcheckBuildAction.class);
if (r != null)
return b.getNumber();
Expand Down

0 comments on commit 7a5165b

Please sign in to comment.