Hello I got this code from the snippet generator to capture user input with a Choice Parameter:
input message: 'where do you want to build this?', parameters: [[$class: 'ChoiceParameterDefinition', choices: ['ec2', 'docker'], description: '', name: 'label']] When I add it to my pipeline it throws java.lang.ClassCastException: hudson.model.ChoiceParameterDefinition.choices expects class java.lang.String but received class java.util.ArrayList ChoiceParameterDefinition <http://javadoc.jenkins-ci.org/hudson/model/ChoiceParameterDefinition.html> does seem to have a constructor that takes a string[] for choices. Any ideas? thanks Lionel. -- 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/6ee54f06-ca8b-45ef-b079-8cef1c8ea713%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.