Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
601 views
in Technique[技术] by (71.8m points)

jenkins - Jenkinsfile-使用参数构建,添加“全选”按钮(Jenkinsfile - build with parameters, add “pick all” button)

I have build with parameters in my jenkinsfile.

(我在jenkinsfile中使用参数进行了构建。)

Lets say I have many choices, and if I want to pick all of them, it will take time.

(可以说我有很多选择,如果我想全部选择,那将需要时间。)

My question - is there any way to make "pick all" button, so all will be checked?

(我的问题-是否有任何方法可以使“全部选择”按钮,因此将全部选中?)

or even check them by default (I prefer the first option)?

(甚至默认检查它们(我更喜欢第一个选项)?)

   def list = 'my,dog,cat,funny,phone,music'
   ...
    parameters {
         extendedChoice(name: 'mychoices', description: 'pick my choices', multiSelectDelimiter: ',', quoteValue: false, saveJSONParameterToFile: false, type: 'PT_CHECKBOX', value: list, visibleItemCount: 20)
        extendedChoice(name: 'yourchoices', description: 'pick your choices', multiSelectDelimiter: ',', quoteValue: false, saveJSONParameterToFile: false, type: 'PT_CHECKBOX', value: list, visibleItemCount: 20)
    }
  ask by jalkjda asjdlka translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...