Drone comes with built-in support for Bitbucket Cloud. To enable Bitbucket Cloud you should configure the Drone container using the following environment variables:
version: '2' services: drone-server: image: drone/drone:0.5 environment: + DRONE_BITBUCKET=true + DRONE_BITBUCKET_CLIENT=95c0282573633eb25e82 + DRONE_BITBUCKET_SECRET=30f5064039e6b359e075
This is a full list of configuration options. Please note that many of these options use default configuration values that should work for the majority of installations.
- Set to true to enable the Bitbucket driver.
- Bitbucket oauth2 client id
- Bitbucket oauth2 client secre
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.
Please use the Authorization callback URL:
Please also be sure to check the following permissions:
Account:Email Account:Read Team Membership:Read Repositories:Read Webhooks:Read and Write
Merge requests and mercurial repositories are not currently supported. We are interested in patches to include this functionality. If you are interested in contributing to Drone and submitting a patch please contact us.