Subset of EnumSet - Jelly

46 views
Skip to first unread message

Bryan Stopp

unread,
Jun 15, 2021, 10:28:01 PM6/15/21
to Jenkins Developers

I'm trying to configure the helper Pipeline Syntax for a step.

The input is a to a list of items. The items come from a Java Enum.

If i use an f:enumSet, no matter how I configure/return out of the default value in the Step, it always uses every value of the enumeration. But I want a subset of these values.

I tried an entry with children checkboxes, but checkboxes send "true" to the server, which fails since that is not one of the enum values.

Does anyone have any examples on how to set up a subset of an enum?


Any help would be appreciated.

Thanks in advance.

- Stopp

Jesse Glick

unread,
Jun 16, 2021, 5:58:35 PM6/16/21
to Jenkins Dev
Use f:select I guess, and manually implement the dropdown contents in your `Descriptor`.
Reply all
Reply to author
Forward
0 new messages