Jenkins allows you to parameterize builds, but I can't figure out how to actually make use of it:
Say I would normally kick my Ant build off from the command-line like so:
ant -buildfile /path/to/my/build.xml -DpackageType=jar package
This would invoke the build.xml
's package
target, and make a property named packageType
available to it, with a value of jar
.
I'm assuming that in the screenshot above, the Name field is where I would specify packageType
, but what about the value?
- If Jenkins wants me to specify a Default Value for the property, then where do I specify the value that my project is using? For instance, I might want a Default Value of
war
, but have this Jenkins job pass in a value ofjar
(to override the default). - Also, what does Jenkins mean by "...allows the user to save typing the actual value." Which user? Where would you type the value anyways?
Thanks in advance!