I'm using the extended choice Jenkins plugin to allow a user to choose a group of hosts to run a job against. Right now, it's done in a naive way and each menu item is just a long list of hostnames.
What I'd like instead is something more sensible like a group name that is mapped to a data structure that can be updated easily. So, for example, the menu items would be "Prod", "Stage", etc. Even after reading the docs, I don't understand how to get that behavior with this plugin.
extended choice Jenkins pluginyou can execute Groovy script so you can put code such asreturn ["item1","item2","item3"]. I think you could return a global env variable, however I didn't succeed returning one from the parameters plugin... Also you could consider using a Groovy or a properties file that you could reuse. Check this answer for Groovy usage with this plugin.