title: Jenkins pipeline mandatory text parameters in input step
body: <p>We are building several pipeline tasks in Jenkins to make life easier on some deploy jobs. One of them requires manual input of several parameters. For that we are using an input step like this:</p>
  
  <pre><code>def userInput = input ( message : 'Select deployment versión and input deployment code:',
       parameters: [[$class: 'TextParameterDefinition', defaultValue: '', description: 'Clarive code', name: 'code']] )
  </code></pre>
  
  <p>Those parameters are mandatory. We didn't find in the documentation any property that will make the TextParameterDefinition mandatory. For now we are re running the step until all parameters are not null, but the solution is a bit confusing for the user. </p>
  
  <p>Is there another way to handle mandatory parameters that avoids running the same step on a loop?</p>