Jenkins和Gitlab:Webhook没有运行 [英] Jenkins and Gitlab: Webhook isn't running

查看:1687
本文介绍了Jenkins和Gitlab:Webhook没有运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个伺服器:


  1. Jenkins

  2. Gitlab

在gitlab上,我有一个webhook:

 按推送事件 - > http:// {jenkinsIP}:8080 / gitlab / build_now 

在Jenkins,


源代码管理:



Git:

 存储库URL:git @ {GitlabIP}:{Gitlabgroup} / {project} .git(从gitlab复制)



凭证:密钥对工作



要建立的分支:* / master



存储库浏览器:gitlab

  url:http:// {GitlabIP} / {Gitlabgroup} / {project} 

版本:6.5.1



投票SCM

 计划H / 1 * * * * 


任何线索为什么Jenkins不运行这个工作?

Poll SCM并设置分支构建 master(不是* / master


I have a couple of servers:

  1. Jenkins
  2. Gitlab

On gitlab, I have a webhook:

On Push events -> http://{jenkinsIP}:8080/gitlab/build_now

On Jenkins, I have a job:

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 * * * *

Any clue why Jenkins isn't running the job?

解决方案

On Jenkins, you should disable "Poll SCM" and set the "Branches to build" to "master" (not "*/master")

这篇关于Jenkins和Gitlab:Webhook没有运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆