如何将Jenkins指向另一个.jenkins主目录? [英] How can I point Jenkins to another .jenkins home directory?
本文介绍了如何将Jenkins指向另一个.jenkins主目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Linux上的家中的特定用户下拥有工作的/.jenkins文件夹.我想与其他用户一起启动Jenkins,但要重新使用其他用户的.jenkins文件夹.我怎样才能做到这一点?詹金斯提供了一些说明,但我不明白:)
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 :)
推荐答案
我认为这可以为您提供帮助.
I think this can help you out.
设置一个指向.jenkins
文件夹的环境变量JENKINS_HOME
并运行Jenkins命令.
Set an Environment Variable JENKINS_HOME
pointing to the .jenkins
folder and run the Jenkins command.
外壳应该像
export JENKINS_HOME=/usr/jhon/.jenkins
java -jar jenkins.war
批次应为
SET JENKINS_HOME=C:\users\jhon\.jenkins
java -jar jenkins.war
这篇关于如何将Jenkins指向另一个.jenkins主目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文