woodpecker/docs/docs/30-administration/20-vcs/50-bitbucket.md

58 lines
1.7 KiB
Markdown
Raw Normal View History

2019-11-13 18:50:54 +00:00
# Bitbucket
Woodpecker comes with built-in support for Bitbucket Cloud. To enable Bitbucket Cloud you should configure the Woodpecker container using the following environment variables:
2019-07-05 13:30:25 +00:00
```diff
# docker-compose.yml
2019-11-13 18:50:54 +00:00
version: '3'
2019-07-05 13:30:25 +00:00
services:
2019-11-13 18:50:54 +00:00
woodpecker-server:
[...]
2019-07-05 13:30:25 +00:00
environment:
- [...]
+ - WOODPECKER_BITBUCKET=true
+ - WOODPECKER_BITBUCKET_CLIENT=95c0282573633eb25e82
+ - WOODPECKER_BITBUCKET_SECRET=30f5064039e6b359e075
2019-07-05 13:30:25 +00:00
2019-11-13 18:50:54 +00:00
woodpecker-agent:
[...]
2019-07-05 13:30:25 +00:00
```
2019-11-13 18:50:54 +00:00
## Registration
2019-07-05 13:30:25 +00:00
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:
```nohighlight
http://woodpecker.mycompany.com/authorize
2019-07-05 13:30:25 +00:00
```
Please also be sure to check the following permissions:
```nohighlight
Account:Email
Account:Read
Team Membership:Read
Repositories:Read
Webhooks:Read and Write
```
## Configuration
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.
```shell
WOODPECKER_BITBUCKET=true # Set to true to enable the Bitbucket driver
WOODPECKER_BITBUCKET_CLIENT=... # Bitbucket oauth2 client id
WOODPECKER_BITBUCKET_SECRET=... # Bitbucket oauth2 client secret
```
2019-11-13 18:50:54 +00:00
## Missing Features
2019-07-05 13:30:25 +00:00
Merge requests are not currently supported. We are interested in patches to include this functionality.
If you are interested in contributing to Woodpecker and submitting a patch please **contact us** via [Discord](https://discord.gg/fcMQqSMXJy) or [Matrix](https://matrix.to/#/#WoodpeckerCI-Develop:obermui.de).