Bitbucket
Connect Bitbucket repositories with an app password and add a webhook for auto-deploy.
Connect a Bitbucket account or workspace, then deploy its repositories from applications and Compose services. Auto-deploy needs a webhook that you add yourself.
Before you start
- A Bitbucket account.
- Optional: the workspace slug, for example
wtree-cloud-workspace, fromhttps://bitbucket.org/account/workspaces/. Use the slug, not the display name. A name such as "wtree Cloud Workspace" causes errors.
Connect
Open https://bitbucket.org/account/settings/app-passwords/new and enter a label such as wtree-cloud-bitbucket-app.
Grant these permissions: Account Read, Workspace membership Read, Projects Read, Repositories Read, Pull requests Read, Webhooks Read and write. Click Create.
In the panel, open Integrations › Git providers, select Bitbucket, and fill in the modal.
| Field | Value |
|---|---|
| Bitbucket Username | Your username |
| App Password | The password you just created |
| Workspace (optional) | The workspace slug |
Click Configure Bitbucket, then Test connection.
Use it
Select Bitbucket repositories as the source of an application or Compose service.
To deploy on push, add a webhook:
In the application or Compose service, open Deployments and copy the Webhook URL.
In Bitbucket, open the repository, then Repository Settings → Webhooks → Add Webhook.
Enter any title, paste the URL, select the Push Events trigger, and save.
Limits
- wtree Cloud does not register webhooks for you; without one, Bitbucket pushes don't deploy.
- An application deploys only for pushes to its selected branch. Use one application per environment to track several branches of the same repository.
