Skip to content

Commit

Permalink
JENKINS-11013 NOT_BUILT & other build status are reported inconsistently
Browse files Browse the repository at this point in the history
Do not class a NOT_BUILT result as a completed build when calculating
unstable/back to normal build transitions. It should be treated in the
same way as an ABORTED build.
  • Loading branch information
oldelvet authored and kohsuke committed Sep 23, 2011
1 parent fd9d680 commit 089440f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/tasks/MailSender.java
Expand Up @@ -138,7 +138,7 @@ private Result findPreviousBuildResult(AbstractBuild<?,?> b) throws InterruptedE
do {
b=b.getPreviousBuild();
if(b==null) return null;
} while(b.getResult()==Result.ABORTED);
} while((b.getResult()==Result.ABORTED) || (b.getResult()==Result.NOT_BUILT));
return b.getResult();
}

Expand Down

0 comments on commit 089440f

Please sign in to comment.