title: Configure Jenkins for different user.home
body: <p>I am running Jenkins version 1.527 (I know there is a newer version but it is broken, I can't use the user interface in 1.528 and haven't gotten a chance to upgrade to 1.529)</p>
  
  <p>I am trying to change the user.home system property in Jenkins by doing this in my startup script:</p>
  
  <pre><code>export HOME=/new-home-dir
  </code></pre>
  
  <p>However, the environment variable shows correctly in jenkins and user.dir shows as the exported variable, but user.home does not change.</p>
  
  <p>The reason I can't use the default functionality is because I am in an enterprise that locks down the user's home directory and my user can add or modify files there.</p>
  
  <p>Any help on changing user.home would be greatly appreciated.</p>
  
  <p>FYI - I am running Jenkins on RHEL v6.2</p>
  
  <p><strong>Attempted Solutions</strong>  </p>
  
  <ol>
  <li>add -Duser.home=/newDir to JAVA_OPTS or JAVA_ARGS, neither worked  </li>
  <li>add -Duser.home=/newDir to the MAVEN_OPTS in the build job.</li>
  </ol>