【发布时间】:2017-01-10 12:04:55
【问题描述】:
我正在尝试测试无人机以在我的 java 环境中实现 CD。我在本地运行无人机 0.4 并通过 ngrok 公开暴露。
我已经设法将一些 bitbucket 私有 git 存储库添加到无人机。存储库中已经有一个drone.yml 文件。 Drone 已在这些存储库中成功注册了 webhook。但是当 webhook 被调用时,drone 会响应状态码404。
查看无人机日志时,您会看到以下错误消息:
http: multiple response.WriteHeader calls
time="2016-09-02T10:54:29Z" level=error msg="failure to get build config for organization/repository. "
time="2016-09-02T10:54:29Z" level=error msg="Error #01: \n" ip=104.192.143.193 latency=5.693494398s method=POST path="/hook" status=404 time="2016-09-02T10:54:29Z" user-agent="Bitbucket-Webhooks/2.0"
我看到一些帖子谈论存储库名称的案例问题。在我的情况下,真正的存储库名称是Organization/repository,组织名称的第一个字母为大写。而日志显示为小写。
关于如何继续解决这个问题的任何想法?
【问题讨论】: