title: How to display the selected parameter in Jenkins?
body: <p>There is a job groove pipeline that asks for parameters from the user interactively. After entering, I cannot display the selected parameters.
  Here is my code:</p>
  <pre><code>node {
      stage('Input Stage') {
          Tag = sh(script: &quot;echo 123'\n'456'\n'789'\n'111&quot;, returnStdout: true).trim()
          input(
              id: 'userInput', message: 'Choice values: ',
              parameters: [
                  [$class: 'ChoiceParameterDefinition', name:'Tags', choices: &quot;${Tag}&quot;],
                  [$class: 'StringParameterDefinition', defaultValue: 'default', name:'Namespace'],
              ]
          )
      }
      stage('Second Stage') {
          println(&quot;${ChoiceParameterDefinition(Tags)}&quot;) //does not work
          println(&quot;${ChoiceParameterDefinition(Namespace)}&quot;) //does not work
      }
  }
  </code></pre>
  <p>How to display the selected parameter correctly?</p>