1.Jenkins配置触发器
1)安装Generic Webhook Trigger插件
2)进流水线任务,勾选Generic Webhook Trigger
3)流水线参数配置
runOpts:定义流水线运行模式
token:触发token
2.gitlab集成webhook配置
1)设置-Outbound requests勾选允许
2)配置webhook触发器
token和runOpts和jenkins流水线保持一致
连接:http://192.168.164.158:8080/generic-webhook-trigger/invoke?token=demo-mavn-service_PUSH&runOpts=GitlabPush
3)测试验证
标签:触发,gitlab,webhook,token,流水线,Jenkins,runOpts From: https://www.cnblogs.com/wuxinchun/p/16795954.html