This class provides methods to process the following two types of parameters that are often used in plugins.
-
Configuration Parameters
-
Procedure Parameters
This is an example usage.
Parameter parameter = stepParameters.getParameter('query') println("Parameter: $parameter")
getValue()
Returns a value of the current parameter.
Usage
def parameterValue = parameter.getValue()
This method gets applied by default, if Parameter object is used in string context**:
// getValue is being applied automatically in string context. Following 2 lines of code are doing the same: println("Query: ${query}") printf("Query: %s", query.getValue())