一、打开Jenkins项目配置安全
二、勾选Trigger builds remotely (e.g., from scripts)测试
三、Authentication Token随便填个内容(比方123456),这样产生一个url:JENKINS_URL/job/project/build?token=TOKEN_NAME,例如 http://127.0.0.1:8080/job/mytest/build?token=123456ui
四、配置jenkins安全设置 Manager Jenkins->Configure Global Security->勾选Allow anonymous read accessurl
五、取消勾选 Prevent Cross Site Request Forgery exploitstoken
六、打开GitLab项目配置ip
七、Settings->Intergrations->URL填入http://127.0.0.1:8080/job/mytest/build?token=123456,下面有测试按钮,能够测试rem