描述:研发提交代码到gitlab仓库自动触发Jenkins的代码构建项目

一、Jenkins配置webhook

需要安装Gitlab Hook Plugin插件

jenkins+gitlab+webhook自动触发代码构建
jenkins+gitlab+webhook自动触发代码构建
jenkins+gitlab+webhook自动触发代码构建
jenkins+gitlab+webhook自动触发代码构建

二、gitlab设置

来到gitlab项目所在位置

jenkins+gitlab+webhook自动触发代码构建

粘贴刚才复制的地址

jenkins+gitlab+webhook自动触发代码构建
jenkins+gitlab+webhook自动触发代码构建

进行测试

jenkins+gitlab+webhook自动触发代码构建

返回200代表成功

jenkins+gitlab+webhook自动触发代码构建

相关文章: