【问题标题】:github webhook fails to connect to jenkins with public ipgithub webhook 无法使用公共 ip 连接到 jenkins
【发布时间】:2021-08-28 19:59:57
【问题描述】:

我正在尝试使用我的 jenkins 服务器配置 github webhooks,但我不断收到“连接失败”。请注意,我使用的是 公共 ip 而不是私有或 localhost 地址,起初,icmp 协议在我的防火墙上被阻止,但即使在允许之后,它仍然无法正常工作。

但是,当我代理我的服务器(使用 smee 客户端)并使用 webhook 中的代理 url 时,它工作正常,所以我认为问题出在 jenkins url(在 jenkins 的系统配置中)所以我将其更改为public ip 但是没有任何作用,现在我一无所知。

提到 jenkins 在 docker 容器上运行可能是相关的,

【问题讨论】:

    标签: docker jenkins github


    【解决方案1】:

    显然 webhook 必须通过 web 服务器而不是直接传递给 jenkins,所以我将 nginx 配置为 jenkins 服务器的反向代理,它工作正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-10
      • 1970-01-01
      • 2011-11-03
      • 2019-01-14
      • 1970-01-01
      相关资源
      最近更新 更多