如何将Jenkins从一台PC移动到另一台PC [英] How to move Jenkins from one PC to another
问题描述
我目前在开发PC上使用Jenkins.我将其安装在开发PC上,因为我对该工具的了解有限.因此我在开发PC上对其进行了测试.现在,我对Jenkins感到很满意,可以作为我在构建过程中的长期合作伙伴",并希望将该Jenkins移动"到专用服务器上.
I am currently using Jenkins on my development PC. I installed it on my development PC, because I had limited knowledge on this tool; so I tested on it in my development PC. Now, I feel comfortable with Jenkins as my long term "partner" in the build process and would like to "move" this Jenkins to a dedicated server.
在此之前,我完成了很少的构建,并从每个构建中存档了工件.尤其是内部版本号对我来说对版本控制非常重要.
Before this I have done few builds and have the artifacts archived from each build. In particular, the build number is very important to me for version control.
如何将所有Jenkins信息从当前PC导出到新服务器?
How can I export all the Jenkins information from my current PC to my new server?
推荐答案
遵循 Jenkins Wiki ,您必须:
- 在新服务器上安装新的Jenkins实例
- 确保新旧Jenkins实例均已停止
- 归档旧Jenkins实例的JENKINS_HOME的所有内容
- 将存档提取到新的JENKINS_HOME目录
- 启动新的Jenkins实例
- 别忘了更改文档/链接到新的Jenkins实例:)
- 不要忘记更改新Jenkins文件的所有者:
chown -R jenkins:jenkins $JENKINS_HOME
- Install a fresh Jenkins instance on the new server
- Be sure the old and the new Jenkins instances are stopped
- Archive all the content of the JENKINS_HOME of the old Jenkins instance
- Extract the archive into the new JENKINS_HOME directory
- Launch the new Jenkins instance
- Do not forget to change documentation/links to your new instance of Jenkins :)
- Do not forget to change the owner of the new Jenkins files :
chown -R jenkins:jenkins $JENKINS_HOME
JENKINS_HOME在Linux安装中默认位于~/.jenkins
中,但要精确找到它的位置,请继续 http: //your_jenkins_url/configure 页并检查第一个参数的值:Home directory
;这是JENKINS_HOME.
JENKINS_HOME is by default located in ~/.jenkins
on a Linux installation, yet to exactly find where it is located, go on the http://your_jenkins_url/configure page and check the value of the first parameter: Home directory
; this is the JENKINS_HOME.
这篇关于如何将Jenkins从一台PC移动到另一台PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!