Github和Jenkins的Webhook无法正常工作

问题描述 投票:2回答:1

[我的目标是根据GitHub中的任何提交触发Jenkins构建。我已经在下面配置了GitHub webhook

http://d36dxxxc.ngrok.io/payload。但是当我在Github中提交时。我看到Jenkins中没有触发构建。

回到Webhook响应,我总是看到以下消息。

Tunnel d36dxxxc.ngrok.io not found

在jenkin->配置“构建触发器”中,我选择了“用于GITScm轮询的GitHub钩子触发器”和“轮询SCM”选项

我在Webhook中的请求看起来像:

Request URL: http://d36d854c.ngrok.io/payload
Request method: POST
content-type: application/json
Expect: 
User-Agent: GitHub-Hookshot/89e91ff
X-GitHub-Delivery: 6893acfa-8844-11e8-9e02-9168bb29d973
X-GitHub-Event: push

但是在回复中我总是这样看:

Tunnel d36dxxxc.ngrok.io not found

Jenkins版本没有任何反应。

jenkins github amazon-ec2 build ngrok
1个回答
0
投票

我还在使用ec2实例运行jenkins时,使用guthub webhook和jenkin build研究相同的情况。让我知道您是否对此有任何更新?

© www.soinside.com 2019 - 2024. All rights reserved.