title: Jenkinsfile: varibale not "parsed" inside SSH command
body: <p>I have a version of my artifact defined in the JenkinfFile which is resolved fine. I tested this with the output of the variable. However, it does not get parsed during an SSH command. What is the right syntax ?</p>
  <pre><code>        version = sh (
          script: './gradlew -q printVersion',
          returnStdout: true
      ).trim()
  
      echo &quot;$version&quot; 
  
      sshPut remote: remote, from: 'build/libs/core-\${version}-all.jar', into: '/opt/microservices/core.jar'
  </code></pre>
  <p>Output:</p>
  <p>1.0.6
  java.lang.IllegalArgumentException: /jenkins/workspace/core/build/libs/core-${version}-all.jar does not exist.</p>