Bitbucket Server Webhook到Jenkins:错误:Jenkins响应:没有使用存储库的git作业 [英] Bitbucket Server Webhook to Jenkins: Error: Jenkins response: No git jobs using repository

查看:282
本文介绍了Bitbucket Server Webhook到Jenkins:错误:Jenkins响应:没有使用存储库的git作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了将Webhook连接到Jenkins Bitbucket服务器中的Bitbucket 插件.主要目的是在提交后触发jenkins构建.

I've installed Webhook to Jenkins for Bitbucket plugin in bitbucket server. The main goal is that a jenkins build will be triggered after a commit.

安装后,我启用了插件: jenkins-url: https://url/jenkins ssh:ssh @ git ..(在SCM插件jenkins作业中使用了相同的命令).

After the install I've enabled the plugin: jenkins-url: https://url/jenkins ssh: ssh@git.. (same command is used in SCM plugin jenkins job).

jenkins工作正常(git clone等正常工作),但插件无法正常工作. 当我单击jenkins webhook插件上的test时,显示给我:

The jenkins job works (git clone etc works) but the plugin isn't working. When I click test on the jenkins webhook plugin it shows me:

Error: Jenkins response: No git jobs using repository: ssh://git@xx.git t and branches: master 

URL是正确的.因此,它在我的詹金斯工作(和分支主管)中使用.我什至在jenkins作业中从错误中复制了URL作为URL,它仍然能够克隆存储库.我会忘记什么?

The URL is right. So it is used in my jenkins job (and branch master). I've even copied the url from the error as URL in the jenkins job and it is still able to clone the repo. What do I forget?

我发现一些信息,您应该在工作中启用SCM轮询(即使每年进行一次轮询).仅比此插件有效吗? 这是正常行为吗? (似乎可以解决我的问题)

I found some info that you should enable SCM polling in your job (even if this is polling once in a year). Only than this plugin will work? Is this the normal behaviour? (it seems to fix my issue)

推荐答案

是的,您必须在Jenkins Job配置的Build Triggers部分中检查Poll_SCM-我可以确认这一点.我正在做与您相同的事情,这就是我如何使它起作用的方法-您可以在Atlassian网站上找到关于此类确认的信息

Yes, you have to check Poll_SCM in the Build Triggers section of your Jenkins Job configuration - I can confirm this. I'm doing the same thing you are and that's how I got it to work - you can find confirmation of such at the Atlassian site

这篇关于Bitbucket Server Webhook到Jenkins:错误:Jenkins响应:没有使用存储库的git作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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