title: How to set environment variables in Jenkins?
body: <p>I would like to be able to do something like:</p>
  
  <pre><code>AOEU=$(echo aoeu)
  </code></pre>
  
  <p>and have Jenkins set <code>AOEU=aoeu</code>.</p>
  
  <p>The <em>Environment Variables</em> section in Jenkins doesn't do that. Instead, it sets <code>AOEU='$(echo aoeu)'</code>.</p>
  
  <p>How can I get Jenkins to evaluate a shell command and assign the output to an environment variable?</p>
  
  <p>Eventually, I want to be able to assign the executor of a job to an environment variable that can be passed into or used by other scripts.</p>