Package io.jenkins.plugins.smartselect
Class SelectionCodec
java.lang.Object
io.jenkins.plugins.smartselect.SelectionCodec
Stateless parsing/validation shared by form submits, API builds and Pipeline.
No Jenkins dependencies: easy to check independently and reuse in tests.
The v0.1 wire format is a comma-separated string, so a choice cannot contain a comma.
-
Method Summary
Modifier and TypeMethodDescriptionchoicesFrom(Object input) Accepts newline-separated textarea values or a JenkinsfileList<String>.defaultsFrom(Object input) Default values from a comma-delimited config field or Jenkinsfile list.static StringselectedFrom(String submitted, List<String> allowed, boolean multi)
-
Method Details
-
choicesFrom
Accepts newline-separated textarea values or a JenkinsfileList<String>. -
defaultsFrom
Default values from a comma-delimited config field or Jenkinsfile list. -
selectedFrom
-
join
-