我有几个服务器:
- Jenkins
- 亚特实验室
在 gitlab 上,我有一个 webhook:
On Push events -> http://{jenkinsIP}:8080/gitlab/build_now
在 Jenkins 上,我有一份工作:
Source Code Management:
Git:
Repository URL : git@{GitlabIP}:{Gitlabgroup}/{project}.git (copy from gitlab)
Credential: key-pair working
Branches to build: */master
Repository browser: gitlab
url: http://{GitlabIP}/{Gitlabgroup}/{project}
Version: 6.5.1
Poll SCM
Schedule H/1 * * * *
知道为什么 Jenkins 没有运行这项工作吗?
最佳答案
在 Jenkins 上,您应该禁用 "Poll SCM"
并将 "Branches to build"
设置为 "master"
(不是 "*/master"
)
关于git - Jenkins 和 Gitlab : Webhook isn't running,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21782950/