title: How to use Jenkins environment variable in shell script?
body: <p>I want to update a java file with the jenkins build number.  I plan on using a shell script to sed the value to the correct build number.  I'm currently doing this:</p>
  
  <pre><code>sed -i 's/Version 3.0/Version $BUILD_DISPLAY_NAME/g'
  /var/lib/jenkins/jobs/AndroidTest/workspace/xxx/res/values/strings.xml
  </code></pre>
  
  <p>Why doesn't this work?  I'd assume I could just use them directly.</p>