我有一个带两个轴的Jenkins多配置项目:
REGION with values:
us
uk
ca
au
fr
JOBS with values:
job1
job2
job3
job4
我必须创建组合过滤器才能运行:
如何构建表达式?
尝试: ((REGION ==“fr”)。暗示(JOBS ==“job2”))|| !((REGION ==“uk”)&&(JOBS ==“job4”))|| !((REGION == “AU”)及及(JOBS == “作业4”))
答案 0 :(得分:0)
你的表达中有一些错误。对于要运行的测试,表达式的结果必须为true
=> ((REGION ==" fr")&&(JOBS ==" job2"))
=>(((REGION ==" au")||(REGION ==" uk"))&&(JOBS ==" job4& #34))
您还需要详细说明最后的条件:
=> (工种==" jobs2&#34)
=>(((JOBS ==" job3")||(JOBS ==" job1"))&&(REGION!=" fr& #34))
请尝试:
(((REGION ==&#34; au&#34;)||(REGION ==&#34; uk&#34;))&amp;&amp;(JOBS ==&#34; job4&#34; ))|| (JOBS ==&#34; job2)|| (((JOBS ==&#34; job3&#34;)||(JOBS ==&#34; job1&#34;))&amp;&amp;(REGION!=&#34; fr&#34;))< / p>