I have list of apps as checkboxes (using extended choice parameter with ',' as multiSelectDelimiter). I want to execute a stage if a matching checkbox is checked, else skip it.
For eg: apps: app1,app3 [checkboxes selected] checkboxes selected image
stages{
paralle{
stage('First'){
when {
// execute this when app1 is selected
}
steps {
}
}
stage('Second'){
when {
// execute this when app2 is selected, should skip this as 'app2' is not checked
}
steps {
}
}
stage('Third'){
when {
// execute this when app3 is selected
}
steps {
}
}
stage('Fourth'){
when {
// execute this when app4 is selected, else skip it
}
steps {
}
}
}
}

