Bit-bucket Jenkins webhooks无效的URL

时间:2018-04-02 15:43:48

标签: jenkins bitbucket webhooks

我最近在jenkins中安装了bit bucket插件(Version-1.1.8)(Jenkins ver.2.113)。我通过提供URL http://ipaddress:port/bitbucket-hook/为Bitbucket服务器上的项目配置了Jenkins webhook。当我试图保存时,我一直收到错误无效的网址。我不确定为什么bit bucket不接受ip地址。我想这可能是因为ipaddress没有被公开曝光。

请帮忙。

仅供参考:IP地址是静态的,并且没有为服务器配置DNS。

1 个答案:

答案 0 :(得分:3)

Bitbucket Cloud(https://bitbucket.org/)只能通过公共IP访问,因此它只能与其他公共IP通信。如果您提供私人IP,那么Bitbucket将无法达到它。 (这是私有IP空间的预期性质。)

至少,您需要拥有一个可公开访问的IP,以便Jenkins可以接收传入的webhook。