Jenkins Choice parameter Passing to a pipeline Job

前端 未结 5 490
粉色の甜心
粉色の甜心 2020-12-30 03:00

Currently I have a pipeline job which has different paramters where one of this parameters is a Choice parameter. Here is the config.xml output of that job parameter:

<
5条回答
  •  旧巷少年郎
    2020-12-30 03:37

    I have seen a working example that uses the below syntax:

    build job:'NameOfTheJob', parameters: [
          string(name: 'FirstOption', value: "test"),
          string(name: 'AnotherOption', value: "test12")
    ]
    

    Basically, don't treat the choice parameters in a special manner, just treat them as regular string parameters.

提交回复
热议问题