0
votes

I use the jenkins with active choices parameter I need that groovy depends on my choice return area where I can write something I try this

if (test_bench_UID.equals('user_spec')) { inputBox = "<input name='value' class='setting-input' type='text'>" return inputBox }

Where test_bench_UID is name active choices parameter, user_spec is parameter after choosing whom groovy should return input box

1
any updates here? - ArteZ

1 Answers

-1
votes

You can use the variable by using ${value}.

In your case may be you can try ${user_spec} where ever you want to access it.

Hope it helps.