How can I use the Extended Choice Parameter plugin in a Jenkins pipeline script?

前端 未结 6 1808
暖寄归人
暖寄归人 2021-02-02 09:01

The Extended Choice Parameter plugin is great and I use it in jobs configured via the UI https://wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+plugin

How

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 09:58

    Use the below code to build multichoice checkbox parameter:

    parameters {
      extendedChoice description: '', multiSelectDelimiter: ',', name: 'a', quoteValue: false, saveJSONParameterToFile: false, type: 'PT_CHECKBOX', value: 'a,b,c', visibleItemCount: 3
    }
    

    It looks like in Jenkins UI:

    Use Declarative Directive Generator to generate various pipeline source code which uses Extended Choice Parameter plugin

提交回复
热议问题