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.
当前回答
詹金斯2.9
Jenkins >新项目 输入项目名称-例如。“MY_CLONE” 指定源(Copy from)作业> OK 当您开始键入名称时,将会找到现有的值。注意,这是区分大小写的。 如果希望保留默认值,则单击Save。 现在这两个工作都在同一个地方:
其他回答
创建一个新的项目,去到最后你会发现选项复制从现有的,只是写你当前的工作名称,你将有克隆的项目工作。
你也可以使用Copy项目链接插件。
这将在项目的左侧面板上添加一个链接:
下面的屏幕将要求输入新的Job名称:
你可以克隆一个工作:
点击“新项目”链接 给你的工作起个新名字 选择单选按钮“复制现有项目” 给出要克隆的作业名称 单击“OK”
最后,您有了新的工作,它反映了克隆工作的所有特征。
詹金斯2.9
Jenkins >新项目 输入项目名称-例如。“MY_CLONE” 指定源(Copy from)作业> OK 当您开始键入名称时,将会找到现有的值。注意,这是区分大小写的。 如果希望保留默认值,则单击Save。 现在这两个工作都在同一个地方:
如果你想复制相同的Jenkins,但在不同的子文件夹,创建新项目->使用copy from。新Job将被克隆到同一目录。然后使用移动选项移动到所需的目录
推荐文章
- 为什么我需要显式地推一个新分支?
- 如何撤消最后的git添加?
- Rubymine:如何让Git忽略Rubymine创建的.idea文件
- Gitignore二进制文件,没有扩展名
- Git隐藏错误:Git隐藏弹出并最终与合并冲突
- 了解Git和GitHub的基础知识
- 没有。Git目录的Git克隆
- Git与Mercurial仓库的互操作性
- 忽略git中修改(但未提交)的文件?
- “git restore”命令是什么?“git restore”和“git reset”之间有什么区别?
- Git合并与强制覆盖
- Git拉另一个分支
- 在Bash命令提示符上添加git分支
- 如何更改Git日志日期格式
- 如何使用GitHub Org Plugin从jenkins管道(jenkinsfile)触发另一个作业?