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.
use "view-clone" plugin. With view clone you can clone all the projects in a view and replace a string with a string you want. Check this link:https://wiki.jenkins-ci.org/display/JENKINS/View+Cloner+Plugin.For me the cloning part is working but the create view part is failing.
To copy an existing job, go to http://your-jenkins/newJob
and use the "Copy existing job" option. Enter the name of the existing job - Jenkins will verify whether it exists.
The default tab on the front page of Jenkins should list all existing jobs, but maybe your predecessor deleted the tab. You can create a new tab listing all jobs from http://your-jenkins/newView.
You can clone a job:
Finally, you have your new job, which reflects all features of your cloned one.
Jenkins > New Item
Enter an item name - E.g. "MY_CLONE"
Specify the source (Copy from) job > OK
When you start typing the name, the existing values will be found. Notice that this is case sensitive.
Click on Save if you want to keep the default values.
Now both jobs are available in the same location:
New Item
>Project Name
= abc
> Instead of Freestyle job
, select Copy from job name of already existing jobs
If you are inside the folder that you want to copy out of the directory then use ../
.
if you want to copy in same Jenkins but in different subfolders, create new item -> use copy from. new Job will be cloned in same directory. Then use move option to move it in desired directory
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