我的无人机CI服务器为私有bitbucket云存储库上的几个事件配置了一个webhook,这些事件中有几个与拉取请求相关的事件(创建、更新、拒绝等)。我在我的存储库上配置了以下管道
# .drone.yml
kind: pipeline
type: docker
name: default
steps:
- ...
trigger:
event:
- pull_request
我希望这个管道在我打开一个pull请求时被执行,但这并没有发生,相反,drone输出了以下消息
{"level":"debug","msg":"webhook ignored","time":"..."}
{"fields.time":"...","latency":...,"level":"debug","method":"POST","msg":"","remote":"...","request":"/hook?secret=...","time":"..."}
当我拒绝或触发其他与pull请求相关的事件时,我通过调试消息看到drone正在正确地接收它们。当我使用push事件触发管道时,它被正确执行,并且结果被传递到bitbucket而没有问题。当我比较拉取请求拒绝事件(被无人机正确检测到)和拉取请求创建事件(被无人机忽略)的头部(请求和响应)时,两者看起来非常相似。
Drone版本: 1.10.1 Docker runner版本: 1.6.2
发布于 2021-01-13 16:29:38
Drone目前不支持pull request events for bitbucket cloud。
Bitbucket也有关于这一点的an open issue。
https://stackoverflow.com/questions/65690707
复制相似问题