如何克隆jenkins中的工作? [英] How do I clone a job in jenkins?

查看:263
本文介绍了如何克隆jenkins中的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jenkins有Gerrit插件,所以当我们检查gerrit时,Jenkins执行构建,如果成功,则验证gerrit中的修改。如果构建失败,则不是。我的理解是,这是通过在詹金斯设立的工作完成。我们现在创建了一个新的分支(git),我想我需要克隆指向其他分支的现有作业,这样相同的工作流发生,并在每次提交时执行构建。有人可以解释我将如何克隆这些工作。我似乎没有看到通过UI做到这一点,也不能通过UI列出工作。

Jenkins has the Gerrit Plugin in place so that when we do checkins to gerrit, Jenkins performs a build and if it succeeds, then the modification in gerrit is verified. If the build fails then it is not. My understanding is that this is accomplished through jobs set up in Jenkins. We have now created a new branch (git) and I guess I need to clone the existing jobs pointing to the other branch so that this same workflow occurs and builds are performed on every commit. Can somebody explain how I would clone these jobs. I don't seem to see a way to do it through the UI nor can I even see a way to list the jobs out through the UI.

推荐答案

要复制现有作业,请转到 http:// your-jenkins / newJob 并使用复制现有作业选项。输入现有作业的名称 - Jenkins将验证是否存在。

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.

Jenkins首页上的默认选项卡应该列出所有现有作业,标签。您可以创建一个新标签,其中列出了 http:// your-jenkins / newView。

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.

这篇关于如何克隆jenkins中的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆