I have a Jenkins multi configuration project with two axis:
sbBrowser
with values:
firefox
ie
chrome
envConfig
with values:
pp1
pp2
pp3
staging
systemtest
I have to create combination filter to run only with sbBrowser = firefox
on all of the envConfig
.
How to build the expression?
Something like:
sbBrowser=="firefox" && envConfig=="pp1" "pp2" "pp3" "staging" "systemtest"
Ok, the following expression is working as a charm:
(sbBrowser=="firefox") && (envConfig=="pp1") ||(sbBrowser=="firefox") && (envConfig=="pp2")||(sbBrowser=="firefox") && (envConfig=="pp3")||(sbBrowser=="firefox") && (envConfig=="staging")||(sbBrowser=="firefox") && (envConfig=="systemtest")
If you want it to run only for firefox, on all values of envConfig, then why specify members of the envConfig set? Just do (sbBrowser=="firefox")
and it will run only on Firefox, for all members of envConfig.
you can do it this way either-
(sbBrowser=="firefox") && ["pp1","pp2","pp3","staging","systemtest"].contains(envConfig)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With