I am trying to create a trigger which would poll my scm and run a job with a specified parameter.
I have a choiceParam.
parameters {
choiceParam('MY_PARAM', ['param1', 'param2', 'param3'], 'My param')
}
And I would like to the job to be triggered automatically always with the same choiceParam(for instance with param1)
Is it possible? If so how?
triggers {
scm "*/10 * * * *"
parameters {
What should be here????
}
}
Choice parameters are nothing but string parameters under the hood. So you would call it like this: