Jenkins has the Gerrit Plugin in place so that when we do check-ins 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.


当前回答

这里所有的答案都非常有用,但忽略了詹金斯一个非常奇怪的bug。在编辑了新的作业配置后,有时如果缩放级别太高,可能看不到保存或应用按钮选项。该按钮出现在页面上,并被您的缩放级别隐藏,您必须缩小,直到您在页面的左下角看到该按钮。

奇怪,我知道!

其他回答

你也可以使用Copy项目链接插件。

这将在项目的左侧面板上添加一个链接:

下面的屏幕将要求输入新的Job名称:

创建一个新的项目,去到最后你会发现选项复制从现有的,只是写你当前的工作名称,你将有克隆的项目工作。

这里所有的答案都非常有用,但忽略了詹金斯一个非常奇怪的bug。在编辑了新的作业配置后,有时如果缩放级别太高,可能看不到保存或应用按钮选项。该按钮出现在页面上,并被您的缩放级别隐藏,您必须缩小,直到您在页面的左下角看到该按钮。

奇怪,我知道!

你可以使用Jobcopy Builder插件

詹金斯2.9

Jenkins >新项目 输入项目名称-例如。“MY_CLONE” 指定源(Copy from)作业> OK 当您开始键入名称时,将会找到现有的值。注意,这是区分大小写的。 如果希望保留默认值,则单击Save。 现在这两个工作都在同一个地方: