Connecting your code
Linking code from Bitbucket Data Center
Looking for docs on Bitbucket Cloud? See this doc.
Examples
Sync individual repos
Sync individual repos
Sync all repos in a project
Sync all repos in a project
Exclude repos from syncing
Exclude repos from syncing
Authenticating with Bitbucket Data Center
In order to index private repositories, you’ll need to provide an access token to Sourcebot.
Create an access token for the desired scope (repo, project, or workspace). Visit the official Bitbucket Data Center docs for more info.
Next, provide the access token to Sourcebot:
Environment variables are only supported in a declarative config and cannot be used in the web UI.
- Add the
token
property to your connection config:
- Pass this environment variable each time you run Sourcebot:
Environment variables are only supported in a declarative config and cannot be used in the web UI.
- Add the
token
property to your connection config:
- Pass this environment variable each time you run Sourcebot:
Secrets are only supported when authentication is enabled.
- Navigate to Secrets in settings and create a new secret with your PAT:
- Add the
token
property to your connection config:
Schema reference
Reference
Reference