title: passing execute shell data between build steps in jenkins
body: <p>Have 2 different execute shells in jenkins and need to pass a variable from one to another</p>
  
  <p>Code below shows what i have tried</p>
  
  <p>Shell script #1</p>
  
  <pre><code>export storedBanner=$(curl http://my.network:8080/boardmessage | jq -r .[0].message|sed 's/&lt;[^&gt;]*&gt;//g') 
  
  echo $storedBanner &gt; ~/stored.txt
  
  curl -i -X POST -H "Content-Type: application/json" -d "{\"message\":\"&lt;h3&gt;Test message&lt;h3&gt;\"}" http://my.network:8080/boardmessage
  </code></pre>
  
  <p>Shell script #2</p>
  
  <pre><code>export storedBanner= $(cat ~/stored.txt)
  
  curl -X POST -H "Content-Type: application/json" -d "{\"message\":\"&lt;h4&gt;${storedBanner}&lt;h4&gt;\"}" http://my.network:8080/boardmessage
  </code></pre>
  
  <p>I want that the exported message to be stored and passed down to 2nd shell script however this doesnt seem to work.</p>