如何将 Jenkins 从一台 PC 移动到另一台 PC [英] How to move Jenkins from one PC to another

查看:41
本文介绍了如何将 Jenkins 从一台 PC 移动到另一台 PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在我的开发 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 实例
  • 确保旧的和新的 Jenkins 实例都已停止
  • 归档旧 Jenkins 实例的 JENKINS_HOME 的所有内容
  • 将存档解压到新的 JENKINS_HOME 目录
  • 启动新的 Jenkins 实例
  • 不要忘记将文档/链接更改为您的新 Jenkins 实例:)
  • 不要忘记更改新 Jenkins 文件的所有者: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆