我如何复制和粘贴,或复制,一个现有的项目?

我有一个现有的哈德逊项目,是配置和工作。

我需要复制的项目,以便我可以有原来的,然后改变新的,使它指向一个不同的源代码控制。

我不想手动重建。我如何“复制粘贴”或其他方式复制现有的构建配置,以便我可以得到新的构建配置和运行速度更快?

52817 次浏览

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.

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.

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.