How do I clone a job in Jenkins?

前端 未结 12 608
孤城傲影
孤城傲影 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 09:51

    if you want to copy in same Jenkins but in different subfolders, create new item -> use copy from. new Job will be cloned in same directory. Then use move option to move it in desired directory

    0 讨论(0)
  • 2020-12-07 09:53

    New Item>Project Name = abc > Instead of Freestyle job, select Copy from job name of already existing jobs

    If you are inside the folder that you want to copy out of the directory then use ../.

    0 讨论(0)
  • 2020-12-07 09:58

    To copy an existing job, go to http://your-jenkins/newJob and use the "Copy existing job" option. Enter the name of the existing job - Jenkins will verify whether it exists.

    The default tab on the front page of Jenkins should list all existing jobs, but maybe your predecessor deleted the tab. You can create a new tab listing all jobs from http://your-jenkins/newView.

    0 讨论(0)
  • 2020-12-07 10:01

    All the answers here are super helpful but miss one very weird bug about Jenkins. After you have edited the new job configurations, sometimes if your zoom level is too high, you may not see the save or apply button option. The button is present on the page and hidden by your zoom level, you have to zoom out until you see the button at the bottom left of your page.

    Strange, I know!

    0 讨论(0)
  • 2020-12-07 10:02

    You could use Jobcopy Builder plugin

    0 讨论(0)
  • 2020-12-07 10:03

    In my case, I had to copy over a job from one jenkins instance to another.

    So first I looked under the directory structure of the old Jenkins (the job/directory name; also noted the config.xml) and then under the directory structure of the new jenkins where I then created a directory with same name/job and copied over the config.xml under this newly created dir.

    Then under, "Manage Jenkins", I hit "Reload Configuration from Disk". Thats it.

    0 讨论(0)
提交回复
热议问题