简体   繁体   中英

Jenkins multijob condition to run job

Can anyone hint me how to pass parameter with yes\\no values as a condition to lun specific jobs in multirun job?

Lets assume, that I have multijob "Masterjob" with 2 parameters - "run job Terminal_deployment" (with values "YES" or "NO") and "run job TVSignage" (with values "YES" or "NO"). How to pass this values to condition parameter to run or skip specific job in multirun job? Can anyone give me an example?

在此处输入图片说明

Figured out, how to write conditions to run downstream job, if yes selected:

"${Terminal}" == "YES"
"${TV_SIGNAGE}" == "YES"

to run "Terminal" or "TV SIGNAGE" jobs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM