Passing extensible choice parameter from Controller to Downstream job (groovy system script) fails

29 views
Skip to first unread message

Victoria Kozel

unread,
Jun 7, 2017, 7:22:32 PM6/7/17
to Jenkins Users
Hello,

I've written a System Groovy script that generates a dropdown list based on the current user's role. Everything works fine except when I am trying to call a downstream job from a Controller job, I get  

ERROR: Build step failed with exception
java.lang.IllegalArgumentException: Illegal choice 'PARAMETER_VALUE' in parameter 'PARAMETER_NAME&
	at jp.ikedam.jenkins.plugins.extensible_choice_parameter.ExtensibleChoiceParameterDefinition.createValueCommon(ExtensibleChoiceParameterDefinition.java:397)

The parameter I am trying to pass as a "current build parameter" from a Controller to the downstream job is defined in identical ways in both jobs (extensible choice system groovy.) Any clues/ideas are greatly appreciated!

Thank you!!
Reply all
Reply to author
Forward
0 new messages