-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
While poking around GitHub to see if I can find examples that would be broken by the current PR for JENKINS-52114, I'm running across a lot of Jenkinsfiles containing either expression or script with if (currentBuild.result == null || currentBuild.result == 'SUCCESS') or variants thereof. While there is the skipStagesAfterUnstable() option, and any actual failure (i.e., that isn't just something setting currentBuild.result directly) will prevent subsequent stages from being executed, I can see some merit in there being a when condition that just means "Run if the build is still successful/hasn't failed yet/hasn't gone unstable yet".