Skip to content

Commit

Permalink
[JENKINS-36831] Fixed regression.
Browse files Browse the repository at this point in the history
The meaning of the "skipFailedBuilds" flag was accidentally flipped.
  • Loading branch information
Bagira80 committed Aug 22, 2016
1 parent 80add10 commit aa22439
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -50,7 +50,7 @@ public static VersionNumberBuildInfo incBuild(Run build, Run prevBuild, boolean
// if we're skipping version numbers on failed builds and the last build failed...
if (skipFailedBuilds) {
Result result = prevBuild.getResult();
if (result != null && result.equals(Result.SUCCESS)) {
if (result != null && ! result.equals(Result.SUCCESS)) {
// don't increment
buildInc = 0;
}
Expand Down

0 comments on commit aa22439

Please sign in to comment.