How can I point Jenkins to another .jenkins home directory?

后端 未结 7 1591
攒了一身酷
攒了一身酷 2020-12-29 07:17

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

7条回答
  •  一整个雨季
    2020-12-29 07:47

    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

提交回复
热议问题