title: Jenkins - Inheriting environment variables on Ubuntu
body: <p>I'm looking to set an environmental variable on an Ubuntu 14.04 machine which we need in our build. But whenever I run the build from Jenkins it's not finding the variable.</p>
  
  <p>I've set the variable in </p>
  
  <ul>
  <li>/etc/environment</li>
  <li>/etc/profile</li>
  <li>/etc/bash.bashrc</li>
  <li>~/.profile</li>
  <li>~/.bashrc</li>
  </ul>
  
  <p>and though I can see the variable from the machines terminal it does not show up when I run a job on Jenkins.</p>
  
  <p>My client connects to Jenkins using Java WebStart. It is a Startup Application on Ubuntu.</p>
  
  <p>This seems like it should be a simple thing to do. But I've wasted a few hours struggle with it (which is frustrating).</p>
  
  <p>Any help appreciated.</p>