title: Can Jenkins source .bashrc of associated user?
body: <p>My <code>Jenkins</code> runs inside <code>Tomcat</code> which runs under user <code>buildman</code>, therefore all the jobs run under that user (in <code>CentOS</code>). Some of my jobs depend on environment variables, which I set in <code>.bashrc</code>. However, the Jenkins jobs do not see any of the variables set in that file even though that script is supposed to be sourced for non-login shells, such as what I would think Jenkins should be (?).</p>
  
  <p>The workaround is simple: I just copy and paste all the variables from my .bashrc into the build command script in Jenkins. But that is not very elegant. Is there any way to get Jenkins to source the .bashrc of the user it runs under so that it gets its usual configuration without having to set it separately in each job?</p>