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
Here are the options you have:
a) Assuming you're deploying Jenkins into Tomcat,you can do the following:
In your catalina.home/conf/localhost/jenkins.xml
b) You can export the JENKINS_HOME=toWhateveryouwant as mentioned by Harsha in the previous post
c) You can extend your JAVA_OPTS params and add -DJENKINS_HOME=/path/to/jenkins_home/ as described here: Jenkins Mailing list
Good luck!