Documentation
Connect Bitbucket
Deploy Bitbucket Cloud repositories with OAuth, an app password, an Atlassian API token or an access token, with webhooks, build statuses and pull request previews.
Rebasable connects to Bitbucket Cloud (bitbucket.org). Linked repositories deploy on every push, pull requests can get a preview, and commits get a rebasable/<service> build status.
Connect your account
Open Settings → Git providers, click Connect on the Bitbucket card and pick a method.
OAuth
Click Continue with Bitbucket and approve Rebasable. If OAuth is not set up yet, a team admin creates an OAuth consumer once:
-
In Bitbucket open Workspace settings → OAuth consumers → Add consumer.
-
Callback URL:
https://dashboard.rebasable.com/api/v1/git/oauth/bitbucket/callback -
Leave This is a private consumer unchecked.
-
Permissions: Account (Read), Repositories (Write), Pull requests (Write), Webhooks (Read and write).
-
Paste the Key and Secret into the Connect dialog and click Save OAuth app.
Tokens
Choose Access token, then:
| What you have | Username field | Token field |
|---|---|---|
| App password | your Bitbucket username | the app password |
| Atlassian API token | your Atlassian email | the API token |
| Repository, project or workspace access token | leave empty | the access token |
Recommended scopes: account:read, repository:write, pullrequest:write, webhook. Create an app password at bitbucket.org/account/settings/app-passwords.
Deploy a repository
In New service, pick Bitbucket, choose the account, search the repository across your workspaces and pick a branch. Rebasable adds a repository webhook for pushes and pull requests, signed with a secret. Without admin rights on the repository it falls back to checking the branch every 60 seconds.
From the CLI:
rebasable git connect bitbucket --username ana --access-token <app-password>
rebasable services create --repo bitbucket:acme/shop-api --branch main
Without connecting an account
You can also paste a Bitbucket URL as a plain Git URL. For private repositories Rebasable generates a read-only SSH key that you add under Repository settings → Access keys.