Does anyone know if you can run a Jenkins' job from JobDSL that has parameters?
I have used queue https://jenkinsci.github.io/job-dsl-plugin/#path/queue
But according to the docs, it only accepts a string or Job object. Maybe there is a way to do it with Job object, but its not clear. From JobDSL docs:
def example1 = job('example-1') {
displayName('first example')
}
queue(example1)
job('example-2') {
displayName('second example')
}
queue('example-2')
Have same problem and couldn't find an answer in docs so I'm now looking at using system groovy script as per this example.
I'm using Jenkins 2.116 and Groovy plugin 2.0