Connecting your code
Linking code from Bitbucket Data Center
Examples
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: