-
Story
-
Resolution: Not A Defect
-
Major
-
None
-
jenkins: Jenkins 2.235.5
have a declarative pipeline job with nested conditions, if met the conditions , build script will execute, else stage will be skipped.
when stage skipped, job result will be success at end and notifies to customer.
How to skip notification or notify as build is skipped, when stage skipped.
{ stage('build') {
when {
anyof
}
steps
}
Out put:
[Pipeline] stage
[Pipeline] { (build)
[Pipeline] echo
Warning, empty changelog. Have you run checkout?
[Pipeline] echo
Warning, empty changelog. Have you run checkout?
[Pipeline] echo
Warning, empty changelog. Have you run checkout?
[Pipeline] echo
Warning, empty changelog. Have you run checkout?
Stage "build" skipped due to when conditional