Drone comes with built-in support for Bitbucket Cloud. Bitbucket Server is not yet supported. To enable Bitbucket Cloud you should configure the Bitbucket driver using the following environment variables:
The following is the standard URI connection scheme:
The components of this string are:
hostserver address to connect to.
?optionsconnection specific options.
This section lists all connection options used in the connection string format. Connection options are pairs in the following form:
name=value. The value is always case sensitive. Separate options with the ampersand (i.e. &) character:
client_idoauth client id for registered application.
client_secretoauth client secret for registered application.
open=falseallows users to self-register. Defaults to false.
orgs=drone&orgs=dockerrestricts access to these Bitbucket organizations. Optional
You must register your application with Bitbucket in order to generate a Client and Secret. Navigate to your account settings and choose OAuth from the menu, and click Add Consumer.
http://drone.mycompany.com/authorize as the Authorization callback URL. You will also need to check the following permissions:
- Team Membership:Read
- Webhooks:Read and Write
Remote Driver Feature Chart
Drone currently only supports BitBucket Cloud (hosted BitBucket). Contributions for BitBucket Server are welcomed.
Also, we only support git on BitBucket Cloud. While we do have a Mercurial Drone Plugin, the webhook output is slightly different for Hg projects. We’d love to see pull requests for this as well.
|Supported version||BitBucket Cloud Only|
|VCS||git ( only )|
|Push tags events||yes|
|Restrict by organizations||yes|
Once you have configured your Remote Driver, it’s time to Select and Configure a Database.