How can I copy & paste, or duplicate, an existing project?

JenkinsProjectHudsonCopy Paste

Jenkins Problem Overview


I've got an existing Hudson project that is configured and working.

I need to duplicate the project so that I can have the original and then change the new one so that it points to a different source control.

I don't want to manually recreate the build. How can i "copy & paste" or otherwise duplicate the exiting build configuration, so I can get the new build configuration up and running faster?

Jenkins Solutions


Solution 1 - Jenkins

Click on "new job" and then select "Copy existing job" at the bottom. Then enter the name of the job you want to copy into the text field.

Solution 2 - Jenkins

In addition to copying a job, I sometimes copy parts of the XML file that contains the job configuration. You just paste the copied part into the xml file of the new job and reload the configuration (under manage hudson). This is helpful when you change the original job after you created your copy. However, for your use case the copy is the right thing to do.

Solution 3 - Jenkins

When you do new job, you can make the choice to copy it from an existing job. Later alter the settings of the new job.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDerick BaileyView Question on Stackoverflow
Solution 1 - JenkinsThomas LötzerView Answer on Stackoverflow
Solution 2 - JenkinsPeter SchuetzeView Answer on Stackoverflow
Solution 3 - JenkinsRedlabView Answer on Stackoverflow