I would like to save the parameters passed into a JobDSL job. I know I can refer to individual parameters but I would like to make the code generic. How would I access the list of parameters passed to the job?
The current code looks something like:
final jobParameters = new File('parameters')
jobParameters.write("""
|AOEU=${AOEU}
|SNTH=${SNTH}
"""[1..-1].stripMargin().trim())
I would like to be able to get it to look something like:
final jobParameters = new File('parameters')
jobParameters.write(params.iterator().join('\n'))
params
is something that's available in the Build Flow Plugin but not the JobDSL Plugin.