Skip to main content
Looking for docs on Bitbucket Data Center? See this doc.
If you’re not familiar with Sourcebot connections, please read that overview first.

Examples

Authenticating with Bitbucket Cloud

In order to index private repositories, you’ll need to provide authentication credentials via a token. You can do this using an API Token, Access Token, or App Password.
  1. Navigate to Personal Settings → API tokens and click Create API token with scopes. Give the token a name and set an expiry date.
  2. Select Bitbucket as the app.
  3. Select the following scopes:
    • read:repository:bitbucket — View your repositories
    • read:workspace:bitbucket — View your workspaces
  4. Click Create token and copy the token value.
  5. Add the user (your account email), gitUser (your Bitbucket username), and token to your connection config. Learn why both are needed
  1. Pass this environment variable each time you run Sourcebot:

Schema reference

schemas/v3/bitbucket.json