Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Suppose there are 9 stages in a Jenkins pipeline and I want to jump to 7th stage if the 3rd stage fails in the pipeline.

What I have tried:

I am new to jenkins and have searched it can be achieved with "when" keyword. Not sure what conditon can be used in the expression part.

stage('stage3'){
when {
expression { }
}
}
Posted
Updated 27-Mar-21 20:57pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900