Hudson to Jenkins migration

泪湿孤枕 提交于 2019-12-24 08:49:21

问题


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?

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.


回答1:


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

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

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.

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.

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



来源:https://stackoverflow.com/questions/14718437/hudson-to-jenkins-migration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!