Jenkins和Gitlab:Webhook没有运行

dav*_*lla 10 git continuous-integration jenkins gitlab

我有几台服务器:

  1. 詹金斯
  2. Gitlab

在gitlab上,我有一个webhook:

On Push events -> http://{jenkinsIP}:8080/gitlab/build_now
Run Code Online (Sandbox Code Playgroud)

詹金斯,我有一份工作:

源代码管理:

Git的方法:

Repository URL : git@{GitlabIP}:{Gitlabgroup}/{project}.git (copy from gitlab)
Run Code Online (Sandbox Code Playgroud)

凭证:密钥对工作

要建立的分支:*/master

存储库浏览器:gitlab

url: http://{GitlabIP}/{Gitlabgroup}/{project}
Run Code Online (Sandbox Code Playgroud)

版本:6.5.1

民意调查SCM

Schedule H/1 * * * *
Run Code Online (Sandbox Code Playgroud)

任何线索,为什么詹金斯没有运作这项工作?

小智 11

在Jenkins上,你应该禁用"Poll SCM"并设置"Branches to build""master"(不"*/master")