woodpecker/docs/docs/30-administration/11-forges/50-bitbucket.md

72 lines
2.2 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
```ini
WOODPECKER_BITBUCKET=true
WOODPECKER_BITBUCKET_CLIENT=... # called "Key" in Bitbucket
WOODPECKER_BITBUCKET_SECRET=...
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
2023-07-30 15:52:47 +00:00
You must register an OAuth application at Bitbucket in order to get a key and secret combination for woodpecker. Navigate to your workspace settings and choose `OAuth consumers` from the menu, and finally click `Add Consumer` (the url should be like: `https://bitbucket.org/[your-project-name]/workspace/settings/api`).
2019-07-05 13:30:25 +00:00
2023-07-30 15:52:47 +00:00
Please set a name and set the `Callback URL` like this:
2019-07-05 13:30:25 +00:00
```uri
2023-07-30 15:52:47 +00:00
https://<your-woodpecker-address>/authorize
2019-07-05 13:30:25 +00:00
```
2023-07-30 15:52:47 +00:00
![bitbucket oauth setup](bitbucket_oauth.png)
2019-07-05 13:30:25 +00:00
Please also be sure to check the following permissions:
- Account: Email, Read
- Workspace membership: Read
- Projects: Read
- Repositories: Read
- Pull requests: Read
- Webhooks: Read and Write
2019-07-05 13:30:25 +00:00
2023-07-30 15:52:47 +00:00
![bitbucket permissions](bitbucket_permissions.png)
## 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.
### `WOODPECKER_BITBUCKET`
2023-10-24 12:42:05 +00:00
> Default: `false`
Enables the Bitbucket driver.
### `WOODPECKER_BITBUCKET_CLIENT`
2023-10-24 12:42:05 +00:00
> Default: empty
2023-07-30 15:52:47 +00:00
Configures the Bitbucket OAuth client key. This is used to authorize access.
### `WOODPECKER_BITBUCKET_CLIENT_FILE`
2023-10-24 12:42:05 +00:00
> Default: empty
Read the value for `WOODPECKER_BITBUCKET_CLIENT` from the specified filepath
### `WOODPECKER_BITBUCKET_SECRET`
2023-10-24 12:42:05 +00:00
> Default: empty
Configures the Bitbucket OAuth client secret. This is used to authorize access.
### `WOODPECKER_BITBUCKET_SECRET_FILE`
2023-10-24 12:42:05 +00:00
> Default: empty
Read the value for `WOODPECKER_BITBUCKET_SECRET` from the specified filepath
2019-11-13 18:50:54 +00:00
## Missing Features
2019-07-05 13:30:25 +00:00
Path filters for pull requests are not 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).