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
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.
Using the Copy Rename Maven Plugin The copy-rename-maven-plugin helps copying files or renaming files/directories during the Maven build lifecycle.
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
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With