0

在此处输入图像描述

在此处输入图像描述

根据日志,我选择了 3 个选项 [abc,cdf,mno] 并且我匹配 [abc] 并且如果选项包含 [abc] 作为字符串,我想执行作业或执行 shell。但我无法获得预期的输出

Run condition [Or] enabling prebuild for step [Execute shell]
[ct_test] $ /bin/sh -xe /tmp/jenkins63839460640800445.sh
+ echo abc,cdf,mno
abc,cdf,mno
Strings match run condition: string 1=[abc,cdf,mno], string 2=[abc]
Strings match run condition: string 1=[abc,cdf,mno], string 2=[mno]
Run condition [Or] preventing perform for step [Execute shell]
Finished: SUCCESS
4

1 回答 1

0

我建议您使用列表参数而不是选择选择。我认为这会奏效。首先将此添加到您的参数选择参数选择 然后运行此管道并查看您是否输出您选择的内容

这是管道代码

于 2019-02-04T15:43:45.477 回答