That DSL is implemented as part of the promotoon plugin itself: - https://github.com/jenkinsci/promoted-builds-plugin#job-dsl-support
Therefore you can use the choiceParam as suggested in the below link: - https://jenkinsci.github.io/job-dsl-plugin/#method/javaposse.jobdsl.dsl.helpers.BuildParametersContext.choiceParam Besides of that, there is likely a bug in your snippet: conditions { manual(promote_users, parameters { choiceParam('myParameterName', ['a', 'b', 'c'], 'my description') }*)* Cheers On Friday, 7 October 2016 19:48:27 UTC+2, jhavero wrote: > > I have it close to work with the code below, however the list of choices - > a, b, c - do not appear as options in the generated job. The parameter name > 'myParameterName' and description 'my description' does appear correctly. > > promotion { > name('Promote') > icon('star-blue-e') > // > conditions { > manual(promote_users, parameters { > choiceParam('myParameterName', ['a', 'b', 'c'], 'my > description') > }) > } > > On Friday, October 7, 2016 at 10:04:45 AM UTC-7, jhavero wrote: >> >> I am using jobdsl plugin 1.47. How does configure closure work. >> >> On Friday, October 7, 2016 at 9:03:38 AM UTC-7, Victor Martinez wrote: >>> >>> Hi there, >>> >>> >>> If you are talking about the jobdsl plugin: >>> >>> What version of the jobdsl plugin do you use? >>> >>> If you use 1.48+, if i recall correctly then you can use the >>> autogenerated dsl documentation within your jenkins instance, further >>> details: >>> >>> >>> https://github.com/jenkinsci/job-dsl-plugin/wiki/Automatically-Generated-DSL >>> >>> >>> Otherwise you might need to use the configure closure. >>> >>> Cheers >>> >>> -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/85b9e65e-bb35-40d1-855f-1616c7e9387c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
