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.
当前回答
创建一个新的项目,去到最后你会发现选项复制从现有的,只是写你当前的工作名称,你将有克隆的项目工作。
其他回答
你可以使用Jobcopy Builder插件
我无法从子文件夹复制詹金斯作业。从选项复制没有显示我正在寻找的建议。不使用建议,复制作业名是行不通的。
因此,如果您想从外部文件夹创建一个作业,您需要首先在子文件夹中创建作业,然后将其移动到需要放置它的不同文件夹中。
新建项目>项目名称= abc >选择“从已有作业的作业名称复制”,而不是“Freestyle作业”
如果你在你想要复制的文件夹中,那么使用../。
你可以克隆一个工作:
点击“新项目”链接 给你的工作起个新名字 选择单选按钮“复制现有项目” 给出要克隆的作业名称 单击“OK”
最后,您有了新的工作,它反映了克隆工作的所有特征。
创建一个新的项目,去到最后你会发现选项复制从现有的,只是写你当前的工作名称,你将有克隆的项目工作。
推荐文章
- 如何将git配置存储为存储库的一部分?
- 如何修改GitHub拉请求?
- 如何在Github和本地删除最后n次提交?
- 我如何调试git/git-shell相关的问题?
- 错误:无法使用rebase进行拉取:您有未分阶段的更改
- Git隐藏未缓存:如何把所有未分期的变化?
- 真实的恶魔
- 如何从另一个分支获得更改
- Git:权限被拒绝(publickey)致命-无法从远程存储库读取。克隆Git存储库时
- git reflog和log有什么区别?
- git推挂在Total line之后
- 重命名git子模块
- 结合Git存储库的前两次提交?
- Xcode 6 gitignore文件应该包括什么?
- 我如何从现有回购的分支创建一个新的GitHub回购?