Class Substitution
- All Implemented Interfaces:
Describable<Substitution>
Only path is mandatory in the constructor; everything else is a
DataBoundSetter, which is what keeps the Pipeline map syntax optional per field and lets
new options be added later without breaking existing scripts.
-
Constructor Details
-
Substitution
-
-
Method Details
-
getPath
-
getValue
-
setValue
A literal replacement.Uses
Util.fixEmpty(java.lang.String)rather thanfixEmptyAndTrim: a literal is written into the user's configuration file verbatim, so trimming it here would silently alter data. Only a genuinely empty submission becomes "not supplied". -
getCredentialsId
-
setCredentialsId
A Secret Text credential ID.Trimmed, unlike
setValue(java.lang.String): an identifier with surrounding whitespace is always a paste accident, never intent.Both setters normalise an untouched form field to
null. An HTML text input always submits a string, so a field nobody filled in arrives as""rather than absent, andDescribableModelonly omits values equal to the declared default — leaving the Snippet Generator to emit noise such ascredentialsId: ''. -
getType
-
setType
-