We are creating several pipeline tasks in Jenkins to make life easier for some deployment jobs. One of them requires the manual entry of several parameters. To do this, we use an input step similar to the following:
def userInput = input ( message : 'Select deployment versión and input deployment code:',
parameters: [[$class: 'TextParameterDefinition', defaultValue: '', description: 'Clarive code', name: 'code']] )
These parameters are required. We did not find in the documentation any properties that would make TextParameterDefinition mandatory. While we perform this step, until all parameters are zero, but the solution is a little confusing to the user.
Is there any other way to process the required parameters, avoiding the execution of the same step in the loop?
source
share