Bitbucket Cloud
Integrating your Bitbucket application with DeepSource requires a Bitbucket application and an OAuth consumer. This document outlines the configuration, permission requirements and app configuration to get started with your Bitbucket Cloud account and DeepSource Enterprise.
Creating an OAuth consumer.
- On the top right corner, click on your profile picture. From the drop-down menu, select All workspaces.
- Click on Manage against the workspace you’d like to create the application in.
- Select OAuth consumers from the sidebar and click on Add consumer.
- You’d be prompted to fill a form to create a new application. Enter the following details:
Replace ORGANIZATION_NAME
with the name of your organization, and HOSTNAME
with the actual hostname on which you plan to deploy DeepSource to.
Field | Value | Example |
---|---|---|
Name | DeepSource ORGANIZATION_NAME | DeepSource Stark International |
Callback URL | https://`HOSTNAME`/accounts/bitbucket_oauth2/login/callback/bifrost/ | https://deepsource.stark.com/accounts/bitbucket_oauth2/login/callback/ |
Permissions | Select Email & Read for Account . |
- Click on Save.
- It shall provide you with Key and Secret. These values will need to be added in the DeepSource Enterprise admin console.
Configuring the OAuth consumer in the Admin Console
After you create your OAuth consumer, you need to configure it in the Admin Console for the application to use it.
-
Visit the Admin Console.
-
Navigate to Application -> Config.
-
Select the checkbox for Bitbucket.
-
Fill up the values from the previous step for:
- Bitbucket OAuth Key
- Bitbucket OAuth Secret
-
Save.
Creating a Bitbucket application.
Before proceeding with this step, please make sure that your DeepSource instance is running and accessible via Bitbucket.
- On the top right corner, click on your profile picture. From the drop-down menu, select All workspaces.
- Click on Manage against the workspace you’d like to create the application in.
- Select Develop apps from the sidebar and click on Register app.
- You’d be prompted to add a Descriptor URL. Add the following URL - “https://`HOSTNAME`/services/atlassian/connect” and click “Register App”.
- You will get a Client ID and Secret. These values will need to be added in the DeepSource Enterprise admin console.
Configuring the Bitbucket application in the Admin Console
After you create your Bitbucket application, you need to configure these in the Admin Console for the application to use it.
-
Visit the Admin Console.
-
Navigate to Application -> Config.
-
Select the checkbox for Bitbucket.
-
Fill up the values from the previous step for:
- Bitbucket App Client ID
- Bitbucket App Secret
-
Save.