Heim  >  Artikel  >  Backend-Entwicklung  >  gitlab webhook 设置

gitlab webhook 设置

WBOY
WBOYOriginal
2016-06-06 20:32:591872Durchsuche

我用gitlab webhook功能实现服务器端自动部署代码功能。但在gitlab 中测试hookd.报
Hook execution failed. Ensure hook URL is correct and service is up.
错误。

hook URL 在浏览器里可以访问的,Deploy keys 都已添加。

不知道哪里有问题!

回复内容:

我用gitlab webhook功能实现服务器端自动部署代码功能。但在gitlab 中测试hookd.报
Hook execution failed. Ensure hook URL is correct and service is up.
错误。

hook URL 在浏览器里可以访问的,Deploy keys 都已添加。

不知道哪里有问题!

看看是不是版本问题:https://gitlab.com/gitlab-org/gitlab-ce/commit/7cefdb49eb460e87e3c3b82...

解决了。hook url 应该是ip地址。而不是域名。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn