Jenkins CD設定(GitLab)

Jenkins CD設定(GitLab webhook)

1.Jekkins 管理=>管理外掛程式=>安裝GitLab PluginGitlab Hook Plugin

2.在專案xxx=>組態=>建置觸發程序勾選=>Build when a change is pushed to GitLab. GitLab webhook URL:"jenkins webhook gitlab的URL"

其餘勾選掉,只勾選push Events 

進階選項選取 => 會出現 sercret Token

3.回到GitLab專案中設定

URL:jenkins webhook gitlab的URL

Sercret Token: "jenkins sercret Token"

若未設定SSH將其勾選取消

SaveChanges

即可完成Jenkins GitLab Webhook