Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.3k views
in Technique[技术] by (71.8m points)

continuous integration - Drone ignores pullrequest:created webhook sent from bitbucket cloud

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...