Jenkins Choice parameter Passing to a pipeline Job

前端 未结 5 511
粉色の甜心
粉色の甜心 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:29

    Based on the tip of c3st7n I have tested the following:

    build job: "NameOfTheJob"", parameters:
      [
        [$class: 'StringParameterValue', name: 'BRANCH', value: "${BRANCH}"],
        [$class: 'StringParameterValue', name: 'WHERE', value: "F3"],
    
      ]
    

    This works.

提交回复
热议问题