Groovy generator bug with parameterized properties

18 views
Skip to first unread message

Ken Godoy

unread,
Mar 3, 2017, 11:20:12 PM3/3/17
to jenkins...@googlegroups.com
Hi all,

I noticed that when I try to use the Groovy Generator for properties and Active Choices plugin, I don't see the option to check off the Script box and therefore don't know where to add my Groovy code to populate the multicheckbox. 

Also, I noticed that it adds SlackNotifier object type for some reason. This is the venerated code.  

properties [pipelineTriggers([]), <object of type jenkins.plugins.slack.SlackNotifier.SlackJobProperty>, parameters([[$class: 'ChoiceParameter', choiceType: 'PT_CHECKBOX', description: 'This is the description', filterable: true, name: 'MYPARAM']])]


What's missing is the 'script' property so that I can add the Groovy code to generate the options for the multi-select checkboxes. 

Thanks!

Ken

Screenshot_20170303-072638.png

Ioannis Moutsatsos

unread,
Mar 9, 2017, 10:13:29 PM3/9/17
to Jenkins Users
Hmm.. The Active choices plugin has not been tested in this context and neither currently supports Scripted or Declarative pipelines. I would suggest that you add an issue to the Active Choices JIRA issues for future consideration. Thank you!
Reply all
Reply to author
Forward
0 new messages