title: Is it possible to make a parameterized scripted pipeline in Jenkins by listing the parameters in actual script, not in job config
body: <p>In a <a href="https://jenkins.io/doc/book/pipeline/#pipeline-syntax-overview" rel="noreferrer">declarative pipeline</a>, I can specify the parameter that the pipeline expects right in the pipeline script like so:</p>
  
  <pre><code>pipeline {
     parameters([
      string(name: 'DEPLOY_ENV', defaultValue: 'TESTING' )
     ])
  }
  </code></pre>
  
  <p>is it possible do to in a scripted pipline? I know I can do this : </p>
  
  <p><a href="https://i.stack.imgur.com/0Wq57.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0Wq57.png" alt="enter image description here"></a></p>
  
  <p>BUT, IS IT POSSIBLE TO DO THIS: </p>
  
  <pre><code>node{
     parameters([
      string(name: 'DEPLOY_ENV', defaultValue: 'TESTING' )
     ])
  }
  </code></pre>