1、jenkins安装插件 

需要安装插件:Gitlab Hook Plugin和Gitlab Plugin

2、Jenkins项目开启webhook

DevOps实战(11) Jenkins、gitLab开启webHook

 设置检出代码分支

DevOps实战(11) Jenkins、gitLab开启webHook

 

3、配置gitlab的webhook

 复制jenkins URL,点击add webhook

DevOps实战(11) Jenkins、gitLab开启webHook

 添加完成后,可点击测试进行测试。

相关文章: