How can I point Jenkins to another .jenkins home d

2020-02-23 06:55发布

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 can I do this? Jenkins offers some instructions but I don't get it :)

标签: jenkins
7条回答
对你真心纯属浪费
2楼-- · 2020-02-23 07:53

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

查看更多
登录 后发表回答