An AC Reactive Reference formatted as HTML should return valid HTML and an 
element with name="value" Only then the value of the element will be passed 
to the build.
Please, read '*Passing Reactive Reference Values to the build* ' in the AC 
wiki page: https://plugins.jenkins.io/uno-choice 

Hope this helps

On Tuesday, December 18, 2018 at 11:48:45 AM UTC-5, Adam von Nieda wrote:
>
>
>    Hi folks,
>
>    I’ve got two parameters in my job, the first is a simple “Choice 
> parameter” called “Choose", which has the following choices
>
> dev
> test
>
>    The second is an “Active Choices Reactive Reference Parameter” called 
> “Hostname", which uses the following Groovy script to return a hostname. It 
> references the above parameter. 
>
> if (Choose.equals("dev")) {
>   return "hostname1"
> } else if (Choose.equals("test")) {
>   return "hostname2"
> } 
>
>    If I set the choice type to “Formatted HTML”, I can see the Hostname 
> parameter update on the screen when I switch back and forth from dev to 
> test. So the Groovy script is working. But when I try to reference the 
> ${Hostname} parameter later on, it doesn’t appear to be set. Is there 
> something I’m missing? 
>
>    I’ve attached a couple of screen shots to show my configuration. 
>  Basically I’m trying to do an if / then on a parameter, setting another. 
> If there’s a better way to do it, I’d love to hear it :) 
>
>    Thanks very much!
>
>       -Adam vonNieda
>
>
>
>

-- 
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/e048acaa-649b-4635-a888-cb4856df0e69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to