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作业”
如果你在你想要复制的文件夹中,那么使用../。
其他回答
要复制现有作业,请访问http://your-jenkins/newJob并使用“复制现有作业”选项。输入现有作业的名称——Jenkins将验证它是否存在。
Jenkins首页上的默认选项卡应该列出所有现有的工作,但可能是您的前任删除了该选项卡。您可以创建一个新选项卡,列出http://your-jenkins/newView中的所有作业。
这里所有的答案都非常有用,但忽略了詹金斯一个非常奇怪的bug。在编辑了新的作业配置后,有时如果缩放级别太高,可能看不到保存或应用按钮选项。该按钮出现在页面上,并被您的缩放级别隐藏,您必须缩小,直到您在页面的左下角看到该按钮。
奇怪,我知道!
你可以克隆一个工作:
点击“新项目”链接 给你的工作起个新名字 选择单选按钮“复制现有项目” 给出要克隆的作业名称 单击“OK”
最后,您有了新的工作,它反映了克隆工作的所有特征。
新建项目>项目名称= abc >选择“从已有作业的作业名称复制”,而不是“Freestyle作业”
如果你在你想要复制的文件夹中,那么使用../。
你也可以使用Copy项目链接插件。
这将在项目的左侧面板上添加一个链接:
下面的屏幕将要求输入新的Job名称:
推荐文章
- 如何点Go模块的依赖在Go。Mod到回购中的最新提交?
- 为什么调用git分支——unset-upstream来修复?
- Windows git“警告:LF将被CRLF取代”,这是警告尾巴向后吗?
- git中的哈希冲突
- git可以自动在空格和制表符之间切换吗?
- Git暂存文件列表
- 如何将git配置存储为存储库的一部分?
- 如何修改GitHub拉请求?
- 如何在Github和本地删除最后n次提交?
- 我如何调试git/git-shell相关的问题?
- 错误:无法使用rebase进行拉取:您有未分阶段的更改
- Git隐藏未缓存:如何把所有未分期的变化?
- 真实的恶魔
- 如何从另一个分支获得更改
- Git:权限被拒绝(publickey)致命-无法从远程存储库读取。克隆Git存储库时