How do I copy a job from one instance to another?

There is a very plugin to do that online without file copies (which also works): the Job Import plugin: https://plugins.jenkins.io/job-import-plugin/

regards

didier


According to the manual, https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins, it's simply to move the corresponding job directory to the new Jenkins instance.

The "Copy existing Job" option requires the job to exist on the current Jenkins instance. It's an option to use the existing job as a template. It can't be used to move jobs between instances.


There are atleast three ways

  1. Copy jobs directory
  2. Use Import Plugin https://wiki.jenkins-ci.org/display/JENKINS/Job+Import+Plugin
  3. Use Jenkins CLI to list the jobs, get the job xml and then create a job on new server based on the xml

Tags:

Jenkins