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.


当前回答

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

其他回答

新建项目>项目名称= abc >选择“从已有作业的作业名称复制”,而不是“Freestyle作业”

如果你在你想要复制的文件夹中,那么使用../。

如果你想复制相同的Jenkins,但在不同的子文件夹,创建新项目->使用copy from。新Job将被克隆到同一目录。然后使用移动选项移动到所需的目录

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

你可以使用Jobcopy Builder插件

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

奇怪,我知道!