开发者

Parametrize Hudson build from the job dashboard

I'm using Hudson for iOS continuous integration w开发者_如何学Gohere Hudson starts a shell script. So what I really want to do it's to be able to parametrize a build from the job's dashboard (e.g I want to have a checkbox and if it's ticked I use another branch of the code in my shell script). Is there any plugin for this?

I've seen Parameterized Build Plugin but either I don't understand how it's working or it doesn't do what I want


You cannot do it from the dashboard directly but via the 'Build now' action.

You choose your job, click 'Configure' and on the settings page you choose 'This build is parameterized'. Then you add a parameter - in your case Boolean - and specify the name of your parameter:

Parametrize Hudson build from the job dashboard

You can then use this parameter as input for your shell script. If you named your parameter FOO, you use $FOO to reference it.

When you choose 'Build now' on that job, you will be asked for the parameters:

Parametrize Hudson build from the job dashboard

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜