Skip to content
Permalink
Browse files
[JENKINS-36831] Fixed regression.
The meaning of the "skipFailedBuilds" flag was accidentally flipped.
  • Loading branch information
Bagira80 committed Aug 22, 2016
1 parent 80add10 commit aa224390a913b6a95c65c4d1a57babd18c492bf6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;
}

0 comments on commit aa22439

Please sign in to comment.