git - Jenkins 和 Gitlab : Webhook isn't running

标签 git jenkins continuous-integration gitlab

我有几个服务器:

  1. Jenkins
  2. 亚特实验室

在 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/

相关文章:

jenkins - 在 ubuntu 14.1 上安装的 Jenkins 上运行 TestNG 测试用例时出现 "java.lang.IllegalStateException: The driver is not executable"错误

java - 测试与外部服务的连接

git push failed - unpack-objects异常退出

git - JGit: checkout 远程分支

build - Jenkins/Hudson 中有哪些属性可用于构建配置?

jenkins - 如何在 SWARM 模式下从 Jenkins 中删除离线(从站/节点)

node.js - CI/CD 到 Azure AppService 失败,ENOENT : no such file or directory, 打开 '/home/site/wwwroot/package.json'

continuous-integration - TeamCity 构建代理从哪里获取其路径环境?

git - 如何在 Git 中显示 pull 请求的审阅者/批准者(使用 GitBash)

git - 使用原始创建/修改时间戳 check out 旧文件