1、Jenkins job中勾选Build when a change is pushed to GitLab


2、Gitlab project 页面setting选择Integrations,配置webhook(将红框“1”中内容填入红框“2”中)


3、配置分支过滤,点击(“高级”)
本文介绍了如何配置GitLab的webhook以在代码推送时自动触发Jenkins进行构建。步骤包括在Jenkins job中启用GitLab push触发、在GitLab项目设置中添加webhook、设置分支过滤以及测试和验证配置。
1、Jenkins job中勾选Build when a change is pushed to GitLab


2、Gitlab project 页面setting选择Integrations,配置webhook(将红框“1”中内容填入红框“2”中)


3、配置分支过滤,点击(“高级”)
1723
866
534