Issue
I am currently using Jenkins on my development PC. I installed it on my development PC, because I had limited knowledge on this tool; so I tested on it in my development PC. Now, I feel comfortable with Jenkins as my long term "partner" in the build process and would like to "move" this Jenkins to a dedicated server.
Before this I have done few builds and have the artifacts archived from each build. In particular, the build number is very important to me for version control.
How can I export all the Jenkins information from my current PC to my new server?
Solution
Following the Jenkins wiki, you'll have to:
- Install a fresh Jenkins instance on the new server
- Be sure the old and the new Jenkins instances are stopped
- Archive all the content of the JENKINS_HOME of the old Jenkins instance
- Extract the archive into the new JENKINS_HOME directory
- Launch the new Jenkins instance
- Do not forget to change documentation/links to your new instance of Jenkins :)
- Do not forget to change the owner of the new Jenkins files :
chown -R jenkins:jenkins $JENKINS_HOME
JENKINS_HOME is by default located in ~/.jenkins
on a Linux installation, yet to exactly find where it is located, go on the http://your_jenkins_url/configure page and check the value of the first parameter: Home directory
; this is the JENKINS_HOME.
Answered By - Cédric Julien