Creating builds fails on Bitbucket Server repositories

Creating a new build, either through the API directly or using the web interface fails with the following error: “bitbucket: undefined error”.

Apparently Drone makes an api call to the following Bitbucket Server endpoint which returns 404: /rest/api/1.0/projects/{project}/repos/{name}/commits/refs/heads/{branch}

Also as of this API changelog, that endpoint has been deprecated in Bitbucket Server 7.11

I’m using Bitbucket Server 7.12.1 and the latest version of Drone.

I believe there is an open pull request to resolve this issue that should get merged tomorrow:

We are planning a minor release this week which will include fixes for a couple of Bitbucket issues.

I’ve just installed the new version and can confirm that the issue has been resolved.