简体   繁体   English

詹金斯 - 这可能吗? 为基于参数的作业提供多个“构建”按钮

[英]Jenkins - Is this possible? Have more than one Build button for a parameter based job

In Jenkins, I created a job with parameters (string, validating string, choice, dynamic choice, blah de blah etc kind). 在Jenkins中,我创建了一个带参数的作业(字符串,验证字符串,选择,动态选择,blah de blah等类型)。

Now, When I go to the job, I see " Build with Parameters " link on the left hand side. 现在,当我去工作时,我看到左侧的“ 使用参数构建 ”链接。 I click on it and I see a nice parameter/arguments (what I configured in the job) on HTML front. 我点击它,我在HTML前端看到一个很好的参数/参数(我在作业中配置的)。

At the bottom of these parameters, there's a button " Build " (This means, once you provide the values to the parameters and click the Build button, it'll initiate the Jenkins job and whatever the job's is configured to do (with/without those arguments/parameters passed), it'll do it. 在这些参数的底部,有一个按钮“ Build ”(这意味着,一旦你为参数提供值并单击Build按钮,它将启动Jenkins作业以及任何作业的配置(有/没有)那些参数/参数传递完毕,它会做到的。

Now, what I need is: 现在,我需要的是:

1) Is there's any way, I can have two or more of such "Build" buttons at the same time? 1)有什么办法,我可以同时拥有两个或更多这样的“Build”按钮吗? ie PS attached image. 即PS附加图像。

2) If only one Build box is allowed/available, can I place a check box (a parameter), which when checked/unchecked, change the number / name of parameters for this job. 2)如果只允许/可用一个Build框,我可以放置一个复选框(参数),当选中/取消选中时,更改此作业的参数编号/名称。

在此输入图像描述

I don't know if this is what you actually looking for, but maybe this plugin can help: https://wiki.jenkins-ci.org/display/JENKINS/Dynamic+Parameter+Plug-in 我不知道这是否是你真正想要的,但也许这个插件可以提供帮助: https//wiki.jenkins-ci.org/display/JENKINS/Dynamic+Parameter+Plug-in

This way you'll be able to change the parameters by the answer of the user's input, and build accordingly. 这样,您就可以通过用户输入的答案更改参数,并进行相应的构建。

Hopes this helps 希望这会有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM