How to pass default values to a Jenkins build using the Parameterized Build Plugin?

wxactly picture wxactly · Jun 3, 2014 · Viewed 20k times · Source

I'm using the Parameterized Build Plugin in Jenkins. I want to provide a link to the build page, but configure the default value for one of the fields that shows up in the form. This value is going to be different every time the job is run, but I want it to be configurable from some other page. Essentially I want to do something like click on a link that looks something like this:

https://jenkins/job/Sandbox/build?delay=0sec&Test=foo

And see this on the build screen:

Jenkins build with default parameter Test=foo

So then I can fill out the rest of the values (or even modify the default value) and then click Build. Is this possible?

Answer

Łukasz Rżanek picture Łukasz Rżanek · Jun 4, 2014

Yes, it's absolutely doable - there is a plugin for that:

Build With Parameters Plugin.

Just install it and change the url to actually use the plugin:

https://jenkins/job/Sandbox/parambuild?Test=foo

And that's should do it...