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:
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:
精彩评论