Builds are triggered twice

I’m using Bitbucket Server 6.0.5 and Drone 0.8.6. Some days ago, Bitbucket was upgraded and the builds are being triggered twice. How can I solve this?

At first I thought Bitbucket was sending a POST request twice, but that’s not the case. If it’s not clear, when Drone receives the hook, 2 entries are inserted in the builds table.

This doesn’t happen with repos registered in Drone after the upgrade, they work just fine. I’ve tried enabling/disabling the repo with no luck.

the only way to trigger two builds is for Drone to receive two webhooks. You should be able to look at the webhook history in Bitbucket Server to see which webhooks are being sent and why.

1 Like