-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
If I have a pipeline with a lot of stages
- run unit tests
- run smoke tests
- run quick ATH
- run slow ATH
- deploy to staging
- run UAT
- run even more tests
If anything sets the build result to anything other than SUCCESS in one of the stages (e.g. unit test failures and junit plugin -> UNSTABLE) then I do not want to run the subsequent tests.
Currently I have to remember to put the following on every stage - which is cumbersome and error prone.
when { expression { currentBuild.result == null } }
It would be useful if there was a config option like skipSubsequentStagesWhenNotSucessfull : true at the top level which could be overridden by a stage if needed (e.g. a final reporter stage...)
Obviously the configuration name above is bad - but just for example...
- duplicates
-
JENKINS-42039 Add a Declarative option for "treat unstable as failure"
- Closed
- relates to
-
JENKINS-27092 create a step to abort the build with a NOT_BUILT status
- Reopened
- links to