Class DropdownDefinition
java.lang.Object
hudson.model.AbstractDescribableImpl<DropdownDefinition>
io.jenkins.plugins.dynamic_view_filter.DropdownDefinition
- All Implemented Interfaces:
Describable<DropdownDefinition>
Defines a single dropdown filter for
DropdownFilterView.
Two source types are supported:
- jobNameRegex — a regex with a capture group applied to the
job's full name. The first capture group's match becomes the dropdown
value. Example:
projects/([^/]+)/.*captures the project name. - buildParameter — collects distinct values of a named build parameter from actual build runs.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDropdownDefinition(String label, String sourceType, String jobNamePattern, String parameterName) -
Method Summary
Modifier and TypeMethodDescriptionextractAllValues(TopLevelItem item) Extract all possible values for this dropdown from the given item.getLabel()booleanmatches(TopLevelItem item, String selected) Check if an item matches the given dropdown selection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
DropdownDefinition
-
-
Method Details
-
getLabel
-
getSourceType
-
getJobNamePattern
-
getParameterName
-
extractAllValues
Extract all possible values for this dropdown from the given item. For jobNameRegex: applies the regex to the job's full name and extracts the first capture group. For buildParameter: scans actual build runs to collect distinct values. -
matches
Check if an item matches the given dropdown selection.
-