title: How can I use a variable in a Jenkinsfile inside sshagent?
body: <p>There are many threads about similiar problems on stackoverflow but they couldn't help me with my specific case:</p>
  <pre><code>node{
    def USER = &quot;user&quot;
    def ADRESS= &quot;adress&quot;
    def ARGUMENT= &quot;argument&quot;
  
    stage('test'){
      sshagent(['123123']) {
        sh 'ssh ${USER}@${ADRESS} &quot;command ${ARGUMENT} &amp;&amp; command&quot;'
      }
    }
  }
  </code></pre>
  <p>In the console output ${USER} and ${ADRESS} will resolve to an empty string but ${ARGUMENT} will resolve to &quot;argument&quot;. How do I have to format these placeholders that they work? I have tried everything I could find but nothing seems to work.</p>