Jenkins migration to new server

时间:2015-07-31 19:44:26

标签: jenkins

For some organizational reasons we have to move Jenkins to new servers. As we are on a old version so a updated is also need on same time. What are things we should consider. Also not sure if we need to configure all jobs in new instance manually or there is faster way to clone them from existing instance. We have around 300 jobs, one master and 7 slaves. We need to set up three masters, one with four slaves and two with three slaves. 300 jobs will split between three masters depending upon there category.

Thanks !!

1 个答案:

答案 0 :(得分:1)

如果我想将Jenkins的工作移动到3个不同的服务器并使用自己的插件 - 我会:

  1. 创建Jenkins的3个实例并单独配置它们。确保新的/重置从站已准备好处理新的要求。
  2. 创建3个单独的作业列表(从原始列表中拆分)。
  3. 确定哪些作业应由Jenkins运行
  4. 安装所有3个Jenkins实例上所有/大多数作业使用的所有常用插件。
  5. 转到原来的$ {JENKINS_HOME} / jobs和

    tar cvfz < jobs_list > jobs.tgz
    

    3次,分别针对每个新的Jenkins实例

  6. 最后将作业档案解压缩到相应的新$ {JENKINS_HOME} / jobs目录。

  7. 如果需要,运行测试并安装缺少的插件。在我看来,应该在每个Jenkins实例上单独设置访问权限。