views:

39

answers:

3

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?

+5  A: 

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.

Thomas Lötzer
i knew it had to be something simple like that. thanks :)
Derick Bailey
A: 

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.

Redlab
hmmm.. my browser did not notify me of a new answer ... hence duplicate
Redlab
+1  A: 

In addition to copy a job, I sometimes copy parts of the XML file that contains the job configuration. You just past 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.

Peter Schuetze
The XML file is a config file for each job located on the master under `HUDSON_HOME/jobs/<job name>/config.xml`
Dave Bacher

related questions