Self-Hosted Bitbucket Integration
Step 1 — Create an OAuth Consumer in Your Bitbucket Server
Requirements: Administrator (or Project Admin) access to your Bitbucket Server/Data Center instance with OAuth consumers enabled.
- Log in to your Bitbucket instance (e.g.,
https://bitbucket.yourcompany.com). - Navigate to Administration → Applications → OAuth (or Settings → Application Links, depending on your version).
- Click Create OAuth Consumer.
- Fill out the form:
-
Application Name:
GitMe Performance Tracking -
Callback URL (Redirect URL):
https://backend.gitdotme.com/bitbucket/callback -
Permissions: Enable read-only permissions exactly as shown:
- Account: Read (Email optional)
- Workspace membership: Read
- Projects: Read
- Repositories: Read
- Pull requests: Read
- Pipelines: Read
-
Leave all other permissions unchecked — GitMe does not require write/admin/delete access.
-
- Choose a Consumer Key (e.g.,
gitme-perf-tracking). - Save the form to generate your Shared Secret.
- Copy the Consumer Key, Shared Secret, and Application Name (Consumer Name) for the next step.
Step 2 — Connect Your Bitbucket Server to GitMe
- In GitMe, open the Self-Hosted Bitbucket Integration section.
- Enter:
- Bitbucket Server URL (e.g.,
https://bitbucket.yourcompany.com) - Consumer Key
- Shared Secret
- Consumer Name
- Bitbucket Server URL (e.g.,
- Click Connect with Self-Hosted Bitbucket.
Step 3 — Authorize GitMe in Bitbucket
- After clicking the connect button, you will be redirected to your company’s Bitbucket instance.
- Review the access request screen (read-only permissions) and click Grant Access.
- GitMe is now allowed to read repository metadata and commit information.
Step 4 — Complete Onboarding & Select Repositories
- After authorization, you’ll be redirected back to GitMe.
- Provide your Company Name, Full Name, and Email.
- Repository Selection:
- GitMe loads the repositories you can read.
- Repositories are selected by default — uncheck any you do not want GitMe to analyze.
- This ensures you control which codebases are monitored.
Step 5 — Accept the Agreement
- Review the GitMe agreement.
- Check "I have read and accept the agreement."
- Click Get Started.
Step 6 — Choose Your Plan
- Select the subscription plan that fits your organization’s needs.
- GitMe begins analyzing your selected repositories and generating developer effort insights.
warning
⚠️ Network Requirements
To integrate successfully, ensure the following connectivity:
- Outbound Access (Bitbucket → GitMe): Your Bitbucket Server must reach
https://backend.gitdotme.com(for OAuth token exchange). - Inbound Access (GitMe → Bitbucket): GitMe’s cloud service must reach your Bitbucket API (e.g.,
https://bitbucket.yourcompany.com/rest/api/1.0/) to fetch repositories and commits. - Webhooks (Recommended): Bitbucket should be able to POST events to
https://backend.gitdotme.com/bitbucket/webhook.