GitLab push除發Jenkins事件

一、打開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

相關文章
相關標籤/搜索