-
Improvement
-
Resolution: Unresolved
-
Minor
Snippet generator is a great tool that helps developers to create new Pipelines.
As when a parameterized input step is generated at snippet generator without mention of how to recover them, it'd be great if snippet it self can provide the example.
If it not possible, at least the help should provide an example, not only _ If multiple parameters are listed, the return value will be a map keyed by the parameter names._ as currently.
For example:
def inputParameter = input message: 'One Parameter', parameters: [[$class: 'StringParameterDefinition', defaultValue: '', description: '', name: 'inputParameter']] def inputParameterMap = input message: 'Two Parameters', parameters: [[$class: 'StringParameterDefinition', defaultValue: '', description: '', name: 'one'], [$class: 'StringParameterDefinition', defaultValue: '', description: '', name: 'two']] def inputParameterOne = inputParameterMap['one'] def inputParameterTwo = inputParameterMap['two']