我有一个参数化项目,其中有一个Choice参数param1和一个常规String参数param2(需要人工输入以定期更改值),其默认值为默认值。我想知道如何根据param1的选择动态地更改param2的默认值吗?
我的情况
param 1 - choice - 1. automatic
2. image tag 1
3. image tag 2
4. both
if someone select 1. it should start job without asking any inputs
if someone select 2. Jenkins should show them a string parameter asking for
input for imagetag 1
if someone select 3. Jenkins should show them a string parameter asking for
input for imagetag 2
if someone select 4. Jenkins should show them 2 string parameter asking
one string parameter for imagetag 1 and other string
parameter for imagetag 2.
我尝试了主动选择插件,但在其中找不到字符串参数。