107
votes

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?

3

3 Answers

195
votes

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.

5
votes

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.

1
votes

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.