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/3a25bbcb-afc7-4385-9ca7-a18934fabb3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to