How do I clone a job in Jenkins?

前端 未结 12 642
孤城傲影
孤城傲影 2020-12-07 09:40

Jenkins has the Gerrit Plugin in place so that when we do check-ins to Gerrit, Jenkins performs a build and if it succeed

12条回答
  •  死守一世寂寞
    2020-12-07 10:04

    All above answers are good. But if you have created "folders" for your jobs, things are slightly different.

    Click on the folder under which you want to create a new job. Then click "New Item" on the left menu. Now your "new job" URL will look like this (assuming you are creating the new job under "my-folder"):

    http://my-jenkins:8080/job/my-folder/newJob

    Under Enter an item name, enter your desired new job name. Then use the Copy from text box at the bottom. Enter job path of he source job.

    E.g. If your source job is under folder src-folder and name of the job is src-job, you will have to enter src-folder/src-job in "Copy from" box.

    Hope it helps.

提交回复
热议问题