I am invoking a Jenkins job remotely using:
Test-Jenkins job is invoked and
DOIT is the security token that I have used.
Now I need to pass some parameters to the build.xml file of this job i.e.
I have not yet figured out how to pass the variables yet.
This question is tagged with
~ Asked on 2013-12-03 19:22:25
See Jenkins documentation: Parameterized Build
Below is the line you are interested in:
~ Answered on 2013-12-03 20:14:19
In your Jenkins job configuration, tick the box named "
This build is parameterized", click the "
Add Parameter" button and select the "
String Parameter" drop down value.
Now define your parameter - example:
Now you can use your parameter in your job / build pipeline, example:
Next to trigger the build with own/custom parameter, invoke the following URL (using either POST or GET):
~ Answered on 2016-03-17 11:56:41