title: Multiple variables in Jenkins shell
body: <p>I try to print two variables in Jenkins shell (one of which is global one) . When I print them independently on shell for each it works, however when I try both variables on single line it fails. See the output, seems like a crop after the first variable .</p>
  
  <p>I've tried to print two local variables, and it seems working. However I need the global one </p>
  
  <pre><code>#!/usr/bin/env groovy
  
  def START
  node ('master') {
      // options{
      //     timestamps()
      // }
      stage("one") {
      script{
          START = sh(script: 'date --utc +%FT%T', returnStdout: true)
          }
      stage("two") {
          def END = sh(script: 'date --utc +%FT%T', returnStdout: true)
          sh "echo start $START"
          sh "echo end $END"
          sh "echo $START and $END"
          }
      }
  }
  </code></pre>
  
  <pre><code>+ date --utc +%FT%T
  [Pipeline] sh
  + echo start 2019-08-01T14:48:08
  start 2019-08-01T14:48:08
  [Pipeline] sh
  + echo end 2019-08-01T14:48:09
  end 2019-08-01T14:48:09
  [Pipeline] sh
  + echo 2019-08-01T14:48:08
  2019-08-01T14:48:08
  + and 2019-08-01T14:48:09
  /var/jenkins_home@tmp/durable-979e1b9e/script.sh: 2: /var/jenkins_home@tmp/durable-979e1b9e/script.sh: and: not found
  [Pipeline] }
  [Pipeline] // stage
  [Pipeline] }
  [Pipeline] // stage
  [Pipeline] }
  [Pipeline] // node
  [Pipeline] End of Pipeline
  ERROR: script returned exit code 127
  Finished: FAILURE
  </code></pre>