SO post 
: 
https://stackoverflow.com/questions/65500284/jenkins-how-to-use-bindings-field-of-extended-choice-parameters-plugin



Le mardi 29 décembre 2020 à 10:14:32 UTC+1, Yannick Lacaute a écrit :

> I don''t understand how to use the bindings field in extendedChoice, I 
> tried the code below but it does not work. Any idea ?
>
> Binding binding = new Binding()
> binding["foo"] = "foo"
> binding["bar"] = "bar"
>
> extendedChoice(
>   name: 'wtf',
>   bindings: new Binding(vars).toString(),
>   description: '',
>   groovyClasspath: '',
>   multiSelectDelimiter: ',',
>   quoteValue: false,
>   saveJSONParameterToFile: false,
>   type: 'PT_JSON',
>   visibleItemCount: 5,
>   javascript: jsScript,
>   groovyScript: groovyScript)
>
> Inside the groovyScript :
>   String a = binding.getProperty("foo") 
>   String b = binding.getProperty"bar") 
>
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4fe271ef-23b0-474b-91fe-e92a71979303n%40googlegroups.com.

Reply via email to