Hi,
I'm using the "using" keyword keyword to create a bunch of jobs basing on a Jenkins job:
def someParam1 = binding['Some Param 1'].toString()
def someParam2 = binding['Some Param 2'].toString()
Jenkins.getInstance().getJobNames().each { jobName ->
// use someParam1 and someParam2 in the DSL
...
Now, whenever a template job (jobName) changes the above seed job reruns, due to the semantics of the "using" keyword. However, since the rerun happens with default build parameters, all child jobs are updated with non-functioning (default) parameters.
How can I
- disable the rerun functionality of the "using" keyword?
- let "using" perform the rerun with the values originally used for the creation of the child jobs?
Best regards,
Tobias