import jenkins.model.*;
import hudson.model.*;
// kick off a job...
FreeStyleProject job = Jenkins.getInstance().getJob('QuickTest');
job.scheduleBuild2(0, new Cause.UserIdCause(),
new ParametersAction(Arrays.asList(
new StringParameterValue('aaa', 'zzz'), // exists in job's defined parameters
new StringParameterValue('bbb', 'yyy') // doesn't exist in job's defined parameters
)));
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/bd1e7ee7-666e-48a3-a68e-ecb972511b39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Should I be using environment variables instead? (How do I add them programmatically?)
Thanks
It won't work as of SECURITY-170.
See https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11 for details.
Can't you list all of those parameters with some left undefined depending on the build?
Cheers
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9274c1af-eaff-40b6-bb09-cefbb83fbbdf%40googlegroups.com.