Using Groovy script to set 'Extended Choice Parameter'
2,579 views
Skip to first unread message
Milan Satpathy
unread,
May 21, 2015, 8:54:08 AM5/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
Hi,
I am relatively new to jenkins. I am trying to use 'Extended Choice parameters' to display a list of values for the second parameter, depending upon first parameter value.
Example: The date values to be displayed depend on the month you have choosen.
First Valiable: MONTH Range: 1..12
Groovy Script for second variable: ------------------------------------------------- MONTH=binding.variables.get('MONTH')
Result: Always 1..30, i.e. the else condition irrespective of what value is set for first parameter. Can anyone suggest how to get it right? Also is there a way to debug it?