小编sto*_*el2的帖子

在 Jenkins 中使用键值对

这是我在 Jenkins 中有参数的要求:

1. User selects 3 Values from Dropdown: DEV, QA, PROD
2. Upon selection I need to return single value as parameter as like this:
 If DEV selected, return "Development http://dev.com 1"
 If QA selected, return "QA http://qa.com 2"
 If PROD selected, return "Production http://prod.com 3"
3. Once the value is returned in a variable, I will use that variable value in next step of 'Windows batch command'.
Run Code Online (Sandbox Code Playgroud)

在哪里以及如何定义键/值。我尝试使用扩展选择参数插件,但不确定如何执行此操作。

key-value-observing jenkins jenkins-plugins keyvaluepair

5
推荐指数
2
解决办法
1万
查看次数