哈德森到詹金斯的迁徙 [英] Hudson to Jenkins migration

查看:112
本文介绍了哈德森到詹金斯的迁徙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图从哈德逊迁移​​到詹金斯.我的意图是保持hudson服务器启动,并在新端口上启动jenkins,并在jenkins上手动创建作业.但是,当我使用sudo apt-get install jenkins安装jenkins时,会卸载hudson. 有办法让两者同时运行吗?

I am trying to migrate from hudson to jenkins. My intention was to keep the hudson server up and start jenkins on a new port and manually create jobs on the jenkins. However, when I install jenkins using sudo apt-get install jenkins, hudson is uninstalled. Is there a way to keep both running?

在詹金斯删除它之后,我尝试使用sudo apt-get install hudson安装hudson;试图使两者保持运转.但是安装hudson也会删除jenkins,我回到第1方.

I tried to install hudson using sudo apt-get install hudson after jenkins removed it; in an attempt to keep both running. But installing hudson also removes jenkins and I am back to square 1.

推荐答案

两个Debian软件包被标记为相互冲突;这就是为什么安装一个会删除另一个.

The two Debian packages are marked as conflicting with each other; that's why installing one removes the other.

您可以做的是下载常规的Jenkins WAR文件并手动启动,并指定新端口,例如:

What you could do is to download the regular Jenkins WAR file and start that manually, specifying the new port, e.g.:

java -jar jenkins.war --httpPort=9090

但请注意,Hudson默认情况下可能会将其配置保存在/var/lib/hudson中,Jenkins为了帮助您无缝迁移,可能会自动检测并使用现有的Hudson配置.

But be wary that Hudson saves its config by default probably in /var/lib/hudson and Jenkins, in an attempt to help you migrate seamlessly, will likely auto-detect your existing Hudson config and use that.

因此,启动Jenkins可能会显示您现有的Hudson配置,并且您在Jenkins UI中进行的任何更改都可能会对正在运行的Hudson安装产生不利影响.因此,您可能要强制Jenkins使用不同的配置目录,以使两台服务器完全分开.

So starting Jenkins will probably show your existing Hudson config, and any changes you make in the Jenkins UI may adversely affect your running Hudson install. So you probably want to force Jenkins to use a different config directory to keep the two servers completely separated.

您可以通过指定包含要使用的路径的JENKINS_HOME环境变量来完成此操作.

You can do this by specifying a JENKINS_HOME environment variable containing the path you want to use.

这篇关于哈德森到詹金斯的迁徙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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