Jenkins 和 Gitlab:Webhook 没有运行 [英] Jenkins and Gitlab: Webhook isn't running
本文介绍了Jenkins 和 Gitlab:Webhook 没有运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有几台服务器:
- 詹金斯
- Gitlab
在 gitlab 上,我有一个 webhook:
On gitlab, I have a webhook:
On Push events -> http://{jenkinsIP}:8080/gitlab/build_now
在 Jenkins,我有一份工作:
On Jenkins, I have a job:
源代码管理:
Git:
Repository URL : git@{GitlabIP}:{Gitlabgroup}/{project}.git (copy from gitlab)
凭据:密钥对工作
要构建的分支:*/master
Branches to build: */master
存储库浏览器:gitlab
Repository browser: gitlab
url: http://{GitlabIP}/{Gitlabgroup}/{project}
版本:6.5.1
轮询 SCM
Schedule H/1 * * * *
知道为什么 Jenkins 没有运行这项工作吗?
Any clue why Jenkins isn't running the job?
推荐答案
在 Jenkins 上,您应该禁用 "Poll SCM"
并将 "Branches to build"
设置为master"
(不是*/master"
)
On Jenkins, you should disable "Poll SCM"
and set the "Branches to build"
to "master"
(not "*/master"
)
这篇关于Jenkins 和 Gitlab:Webhook 没有运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文