title: How to pass Value inserted in text box of Active choice reactive parameter to job
body: <p>When I'm in "build with parameters" before starting job, I want to pass the value entered in a textbox to the Job. I´m using Active choice and  Active choice reactive parameter like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Mty6W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mty6W.jpg" alt="Parameters"></a></p>
  
  <p>This is the groovy script which I then use to run job and show output. But I´m getting NULL on <code>echo</code> command.</p>
  
  <pre><code>node {       
      def commit = params.val
  
      stage ('Pulling code from Bitbucket') {
  
          git branch: 'master',
              credentialsId: '2bbc73c4-254e-45bd-85f4-6a169699310c',
              url: 'git@bitbucket.org:repo/test.git'
  
  
          sh (""" echo ${commit}""")  
      }
  }        
  </code></pre>
  
  <p>Which is the correct way to pass parameter into build ?</p>