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.BuildParame
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')
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
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/Auto
Does anyone know the DSL for the Choice parameter for a promote. See
attached screenshot.
So far I have,
promotion {
name('promote')
icon('gold-blue-e')
// Promote
conditions {
manual(promote_users)
}
--
You received this message because