在詹金斯建立触发器 [英] Build triggers in Jenkins

查看:101
本文介绍了在詹金斯建立触发器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为什么在詹金斯中使用构建触发器?

Why do we use build triggers in Jenkins?


  1. 在其他项目构建后进行构建

  1. Build after other projects are built

定期构建

投票 SCM


推荐答案

根据项目的上下文,生成触发器可以用于各种目的。

A build trigger may be used for various purposes depending on the context of the project.

例如:


  1. 如果组织希望使用纯Jenkins进行CI / CD管道设置。他们将具有构建触发器来触发下游项目,例如

  1. If an organization would like to have a CI/CD pipeline setup using plain Jenkins. They will have the build triggers to trigger downstream projects such as


  1. 集成测试

  2. 代码扫描

  3. 性能测试

  4. 端到端测试

  5. 部署。

  1. Integration tests
  2. Code scans
  3. Performance Tests
  4. End to End Tests
  5. Deployment.

以上阶段将被链接到父作业,并且可以根据阶段而被一个或一个并行地触发(这是使用构建触发器的地方,触发下游项目

The above stages will be chained to the parent job and can be triggered one by one or in parallel depending on the stage (this is where build trigger is used, trigger the downstream project if the parent is successful).

定期构建可用于在标准作业上运行(如果您的团队设置每天晚上都可以掌握) 。然后,您可以将测试作业设置为在固定时间的傍晚定期构建(也可以根据(1)中所述的成功触发测试作业

Build periodically can be used to run on standard jobs (if you have a team setup which has deployment to master every evening). Then you can set up the test jobs to build periodically late evenings at a fixed time (also the test job can be triggered based on success as explained in (1)

轮询SCM只是检查存储库中是否有提交的新代码并以此为基础进行构建。

Poll SCM is nothing but checking if there is new code committed in your repository and build based on that.

请查看Jenkins Wiki,以获得更多
信息: 构建软件项目

Checkout the Jenkins wiki for more information: Building a software project

这篇关于在詹金斯建立触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆