当前位置:网站首页>Jenkins 通过检查代码提交自动触发编译
Jenkins 通过检查代码提交自动触发编译
2022-06-22 14:33:00 【HoneyMoose】
使用 Jenkins 的目的就是为了尽量让编译和集成的部署自动化。
通常在部署成功和配置后,通常是想要通过事件自动触发编译,我们通常有很多种办法可以做。
比如使用 webhook 的方式来做。
检查 SCM
另外一种方法就让 Jenkins 每隔一段时间来自动检查下代码,如果代码有修改的话就触发编译。

通过对上面的选择就可以完成这个操作了。
需要注意的是 Jenkins 采取了和 Cron 类似的语法,但是又有一点点不同。
上面的语法就是每 5 分钟 Pull 一次。
在 Jenkins 中可以看到本次编译是如何被触发的。

从上面的图片中可以看到是通过系统的 SCM 改变来触发的编译。
边栏推荐
猜你喜欢

How MySQL modifies the storage engine to InnoDB

那些没考上大学的人,后来过的怎样

Development status of full color LED display

GBASE现身说 “库” 北京金融科技产业联盟创新应用专委会专题培训

Discourse 的信任级别

Simulation Keil et vspd

Exploration and practice of dewu app data simulation platform

Fast and accurate point cloud registration based on minimizing 3D NDT distance

接了个私活项目,一下赚了15250,还有必要做主业吗?

Is the encryption market a "natural disaster" or a "man-made disaster" in the cold winter?
随机推荐
Mitsubishi manipulator demo program
【一起上水硕系列】Day Three - video
【题目精刷】2023禾赛-FPGA
C # implements insertion sorting
推荐几个AI智能平台
小程序开发----自定义有效期缓存
After 100 days, Xiaoyu built a robot communication community!! Now invite moderators!
C语言学生成绩排名系统
求求了,别被洗脑了,这才是90%中国人的生存实况
米哈游六月社招火热开启!500+岗位,超多HC,就在这个夏天(附内推方式)
HMS Core新闻行业解决方案:让技术加上人文的温度
How MySQL modifies the storage engine to InnoDB
历时100天、小鱼搭建了个机器人交流社区!!现公开邀请版主中!
标准化、最值归一化、均值归一化应用场景的进阶思考
基础版现在SQL分析查询不能用了吗?
时隔17年,刘亦菲再次刷屏式爆红:普通人不想被淘汰,也要懂得这件事
三菱机械臂demo程序
Method of using inout signal in Verilog
Keil simulation and VSPD
新版负载均衡WebClient CRUD