Based on the parameter selected (Eg. choice - in this case), need to scale up/down the pipeline stages.
if(choice.equals("four")){
pipeline{
<4 stages>
}
}else{
pipeline{
<3 stages>
}
}
Is it possible to implement something like this?