1

I got a task in which i have to setup new jenkins server and copy jobs,plugins,settings etc from existing server. So far I copied all the jobs but how to import all the plugins and settings we have on jenkins didn't find the answer.

If there is any plugin that will do the work will be helpful

Guardian
  • 383
  • 4
  • 17

2 Answers2

1

There is this simple solution for that.

  1. Stop your existing Jenkins server and also the new Jenkins server that you have installed.
  2. Create a archive file of all the contents in the JENKINS_HOME folder of your exiting Jenkins instance.
  3. Now, extract that archive file to the JENKINS_HOME directory of your new Jenkins instance and then launch your new Jenkins.
  4. Now in your new Jenkins instance go to Manage Jenkins -> Configure System and find Jenkins Location section and then under theJenkins URL field change the URL that points to the new Jenkins instance. enter image description here

And you are done :)

ANIL
  • 2,542
  • 4
  • 25
  • 44
1

For similar kind of task I wrote python script to migrate plugins & jobs from one Jenkins instance to another using Jenkins Rest API. You can find the detailed steps in this post How to move Jenkins from one PC to another?

psalvi21
  • 143
  • 5