Home  >  Article  >  Backend Development  >  gitlab webhook 设置

gitlab webhook 设置

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

我用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地址。而不是域名。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn