以下是我对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'.
在哪里以及如何定义键/值。我尝试使用扩展选择参数插件,但不确定如何操作。
DEV
并执行println(envParam)
时,结果如预期的那样是Development http://dev.com 1
。但现在我想打印出显示值(在本例中为DEV
本身)。这可能吗? - Hien Le