Jenkins作业通知失败,并显示“No git consumers for URI ...” [英] Jenkins job notification fails with "No git consumers for URI ..."

查看:593
本文介绍了Jenkins作业通知失败,并显示“No git consumers for URI ...”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一个通知 jenkins的后接收 git / code>关于更改,但在 jenkins 中没有触发任务。

I want to set up a post-receive git hook that notify jenkins about the change, but no job is triggered in jenkins.

我的 post-receive hook看起来像这样:

My post-receive hook looks like this:

curl http://localhost/jenkins/git/notifyCommit?url=<git_repository_url>

如果我在终端发出命令,我得到以下消息:

If I issue the command in terminal, I get the following message:

"No git consumers for URI..."


b $ b

我有一个jenkins作业,连接到Git源代码管理,存储库URL以及分支: * / master

我搜索过这个问题,但我没有发现任何有用的相关:没有git消费者URI

I've searched for this problem, but I've found nothing useful related to: "No git consumers for URI"

使用:


  • LinuxMint

  • Apache 2.4.6

  • git 1.8.3.2

  • curl 7.32.0

  • Jenkins 1.532.2

  • LinuxMint
  • Apache 2.4.6
  • git 1.8.3.2
  • curl 7.32.0
  • Jenkins 1.532.2

我在apache中设置了一个代理:

I have a proxy setup in apache:

<Proxy *>
    Order deny,allow
    deny from all
   allow from 127.0.0.1
</Proxy>

git存储库 bare p>

The git repository is bare.

推荐答案

为您要通知的每个项目启用SCM轮询:

Enable SCM polling for each project you want to notify:


  1. 转到信息中心

  2. 点击您的项目

  3. 点击配置

  4. 构建触发器下选中轮询SCM >
  5. 对任何其他项目重复此操作。

  1. Go to the Dashboard.
  2. Click on your project.
  3. Click Configure.
  4. Under Build Triggers check the box for Poll SCM.
  5. Repeat for any other projects.

您发送的通知告诉Jenkins轮询资源库,将仅在启用SCM轮询时才响应。

The notification you send tells Jenkins to poll the repository, so projects will only respond if SCM polling is enabled.

这篇关于Jenkins作业通知失败,并显示“No git consumers for URI ...”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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