Multiple ConditionalSteps in Jenkins DSL

20 views
Skip to first unread message

amar

unread,
Oct 17, 2023, 9:00:14 AM10/17/23
to job-dsl-plugin
Hello All,

I am trying to come up with DSL script for below case

Screenshot 2023-10-17 at 6.25.52 PM.png

 conditionalSteps {
             condition {
                 and {
                     status('SUCCESS', 'SUCCESS')
                 } {
                     and {
                        stringsMatch('${REGION}', 'us-west-2', false)
                        stringsMatch('${ENVIRONMENT}', 'prod', false)
                     }
                 }
            }
  }

I have referred the examples mentioned in below link but still couldn't solve this issue.

Could you please help?

Thanks,
Amar

Reply all
Reply to author
Forward
0 new messages