Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

My drone CI server configured a webhook for several events on a private bitbucket cloud repository, among those events are several pull request related events (create, update, decline and more). I configure the following pipeline on my repository

# .drone.yml
kind: pipeline
type: docker
name: default
steps:
- ...

trigger:
  event:
  - pull_request

I expect this pipeline to be executed when I open a pull request but this does not happen, instead drone outputs the following messages

{"level":"debug","msg":"webhook ignored","time":"..."}

{"fields.time":"...","latency":...,"level":"debug","method":"POST","msg":"","remote":"...","request":"/hook?secret=...","time":"..."}

When I decline or trigger other pull request related events I see by the debug messages drone is receiving them correctly. When I trigger the pipeline with the push event it is correctly executed and the results are communicated to bitbucket without an issue. When I compare the headers (for request and response) of a pull request decline event (correctly detected by drone) and a pull request create event (ignored by drone) both look very similar.

Drone version: 1.10.1 Docker runner version: 1.6.2


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.9k views
Welcome To Ask or Share your Answers For Others

1 Answer

Drone does not support pull request events for bitbucket cloud at the moment: https://github.com/drone/drone/issues/597

Bitbucket also has an open issue about this: https://jira.atlassian.com/browse/BCLOUD-5814


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share
...