Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

move Hudson job to another server

I've setup a continuous integration build with Hudson running on Tomcat. I now need to move this a different instance of Tomcat, but don't want to have to configure everything from scratch.

Is there a configuration file that defines each job which I could copy to the new server, or is to possible to import/export a job via the user interface?

Thanks, Don

like image 962
Dónal Avatar asked Jan 22 '09 17:01

Dónal


People also ask

How to move Jenkins job from one server to another?

You can: Move a job from one installation of Jenkins to another by simply copying the corresponding job directory. Make a copy of an existing job by making a clone of a job directory by a different name. Rename an existing job by renaming a directory.

Which plugin can be used to copy file from one job to another?

Using the Copy Rename Maven Plugin The copy-rename-maven-plugin helps copying files or renaming files/directories during the Maven build lifecycle.


3 Answers

Check the .hudson directory in the homedir of the user that runs the hudson process. (At least: that is the location hudson writes its config files to if you run it using java -jar hudson.war on linux).

Also: http://wiki.eclipse.org/Administering_Hudson

like image 87
Simon Groenewolt Avatar answered Oct 09 '22 12:10

Simon Groenewolt


Since I cannot up-vote, I will add that Simon's answer is the best. The link to the relevant section about copying and moving jobs can be found at the following location: http://wiki.hudson-ci.org/display/HUDSON/Administering+Hudson#AdministeringHudson-Moving/copying/renamingjobs

like image 34
hoshposh Avatar answered Oct 09 '22 11:10

hoshposh


When we migrated to a new server we just copied the jobs folder over to the new server. There can be a huge amount of data in the builds folder in each job, so we left those out.

Everything worked fine for us after the transfer but we had a fairly simple initial setup.

like image 26
Patrick Avatar answered Oct 09 '22 11:10

Patrick