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

后端 未结 7 1587
攒了一身酷
攒了一身酷 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条回答
  •  -上瘾入骨i
    2020-12-29 07:56

    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!

提交回复
热议问题