我想通过使用扩展选择参数,并从选择多个选项的选择,我想通过考取一个刺痛匹配运行工作

问题描述 投票:0回答:1

enter image description here

enter image description here

由于每个日志我选择了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
jenkins extended-choice-parameter
1个回答
0
投票

我将使用列表参数,而不是选择的选择建议你。我认为这会做的伎俩。首先它添加到您的参数Choice Parameter Selection然后运行这个管道,看看你输出你选择了什么

This is the pipeline code

© www.soinside.com 2019 - 2024. All rights reserved.