I have the working /.jenkins folder under a specific user in home on Linux. I want to start Jenkins with another user, but re-use the .jenkins folder of the other user. How
Jenkins was not taking JENKINS_HOME env variable i set for some weird reason.
The i added this line in tomcat start up script(/etc/init.d/tomcat).
$export JENKINS_HOME=/path/to/jenkins_home/
Now jenkins points to the new jenkins home :) This will be useful especially when you install jenkins on cloud. (on an Ec2 or eucalyptus intance)
Reference: https://wiki.jenkins-ci.org/display/JENKINS/Tomcat