哈德森到詹金斯的迁徙
我正试图从哈德逊迁移到詹金斯.我的意图是保持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.