title: Pass a string parameter to Jenkins declarative script
body: <p>I am declaring a String Parameter in Jenkins - </p>
  
  <pre><code>Name is SLACKTOKEN 
  Value is qwsaw2345
  </code></pre>
  
  <p>My Jenkins file has script</p>
  
  <pre><code>pipeline {
  
      agent { label 'trial' }
  
      stages {
          stage("Build Docker Image") {
              steps{
                  sh 'docker build -t trial:latest --build-arg SLACK_SIGNING_SECRET=${SLACKTOKEN}'
              }
          }
  
  
      }
  }
  </code></pre>
  
  <p>I tried like this, but it didnt work. Could you please let me know how can I pass a value from Jenkins string parameter to Jenkins declarative script file.
  I have added the Password parameter in job like below </p>
  
  <p><a href="https://i.stack.imgur.com/keQ3h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/keQ3h.png" alt="enter image description here"></a></p>