title: How to set env variables which contain a command using EnvInject plugin of Jenkins
body: <p>I have installed the EnvInject plugin of Jenkins.
  I add it in the properties content (In script content also doesn't work: echo's nothing)
  I able to set environment variable e.g.:</p>
  
  <pre><code>TEST="hello world"
  </code></pre>
  
  <p>In shell:</p>
  
  <pre><code>echo ${TEST}
  Output: Hello World
  </code></pre>
  
  <p>But when I try to put the output of a command in my variable it doesn't work:</p>
  
  <pre><code>HOSTNAME=`hostname`
  </code></pre>
  
  <p>In Shell</p>
  
  <pre><code>echo ${HOSTNAME}
  Output: `hostname`
  </code></pre>
  
  <p>While when I set the environment variable in my shell (without the plugin it works):
  In Shell</p>
  
  <pre><code>HOSTNAME=`hostname`
  echo ${HOSTNAME}
  Output: localhost
  </code></pre>