Definition and Guide

What is Bitbucket?

Explore Bitbucket Cloud versus Data Center, integrated Pipelines CI/CD, compliance friendly merge checks, AI generated PR summaries, and SonarQube integration.

Table of contents

Start your free trial

Verify all code. Find and fix issues faster with SonarQube.

Get started

Bitbucket is a primarily Git-based source code repository hosting service for Git and Mercurial version control systems built by Atlassian. At its core, Bitbucket provides a centralized platform for teams to store, manage, collaborate on, build and deploy their code. Bitbucket is designed to cover the entire software development lifecycle, from initial concept to deployment in the cloud. 

It offers both cloud and self-managed (Data Center) options, allowing teams to choose the hosting environment that best fits their security and scale requirements.

Bitbucket is a comprehensive tool focused on streamlining the Git workflow and integrating tightly with the rest of the development ecosystem.

Collaboration: from concept to cloud

Bitbucket facilitates code collaboration from concept to cloud by providing a structured, traceable workflow that links planning to code review and delivery.

  1. Concept/Planning: This starts by linking source code directly to project management. Because Bitbucket is an Atlassian product, the integration with Jira is tight. For instance, developers can reference Jira issues in their commit messages, branch names, or pull request descriptions and this automatically updates the status of the cited Jira issue (the concept) as the code moves through the workflow.
  2. Code Review: The platform's centerpiece is the pull request (PR) system. It enables in-line commenting, threaded conversations, and designated reviewer approvals, ensuring code changes are vetted collaboratively.
  3. Cloud/Delivery: Bitbucket Pipelines, the integrated CI/CD tool, can be configured to automatically build, test, and deploy the code once a PR is approved and merged, completing the cycle and delivering the change to production (the cloud).

Integrated CI/CD with Bitbucket pipelines

Bitbucket Pipelines is an integrated continuous integration and continuous delivery (CI/CD) service that is built directly into Bitbucket Cloud.

This approach means developers can define their build, test, and deployment workflows using a YAML configuration file (bitbucket-pipelines.yml) located in the root of their repository. This configuration-as-code approach centralizes the CI/CD process alongside the source code, reducing the context-switching and server maintenance typically associated with managing a separate CI tool.

The Bitbucket marketplace offers a broad ecosystem of third-party tools and Pipes (small, reusable script blocks for Pipelines), allowing developers to connect security, monitoring, and testing tools into their workflows.

Bitbucket Cloud versus Data Center

It is worth noting that Bitbucket pipelines are only available in Bitbucket Cloud, not in Bitbucket Data Center. 

Atlassian is driving a clear shift to the cloud, which directly impacts their self-managed Bitbucket offerings. While Atlassian has announced that most of its Data Center products (like Jira and Confluence) will reach end of life on March 28, 2029, Bitbucket Data Center is a specific exception: Bitbucket Data Center will not reach end-of-life. Atlassian recognizes that source code is highly sensitive, so they are offering a Bitbucket Hybrid License. This allows customers to run both Bitbucket Data Center (self-managed) and Bitbucket Cloud simultaneously under a single license, providing maximum flexibility for long-term planning. A previous self-managed offering, Bitbucket Server, has already been discontinued. 

Bitbucket Cloud and Bitbucket Data Center are distinct offerings designed for different strategic needs, resulting in key feature differences. Cloud is positioned for modern DevOps, featuring Bitbucket Pipelines (a built-in CI/CD service), Atlassian Intelligence for AI-assisted code review, and integrated DevSecOps tools and IP allowlisting for governance, all managed by Atlassian for low maintenance. Data Center, conversely, is built for large-scale enterprise environments where control is paramount; its unique features include smart mirroring to improve performance for geographically distributed teams, clustering and high availability for zero-downtime operations, and full infrastructure control over data residency and customization via plugins, though it relies on external tools like Jenkins for CI/CD. The fundamental difference is that Cloud prioritizes managed, native integration while Data Center prioritizes ultimate control and scalability for mission-critical, self-managed deployments.

Security, compliance, and enforced standards

Bitbucket helps enforce code standards and security requirements using merge checks and branch permissions. Merge checks are a critical developer control for enforcing standards, quality, and compliance within the pull request workflow. They act as mandatory preconditions that must be satisfied before code can be merged into protected branches (like main or release).

For enterprise teams, these checks are crucial because they move policy from a document to an enforced technical barrier. The categories of available checks include:

  • Code review and approval checks, which focus on ensuring proper human vetting and accountability for every code change, with the ability to require a minimum number of human reviews, or reviews from certain default reviewers. 
  • Code quality and continuous integration checks, which link the source code management system directly to the results of automated testing and analysis tools. By integrating tools that run static analysis or unit tests during the build, you prevent the merge of code that introduces bugs or fails quality thresholds.
  • For complex compliance needs and audit enforcement, custom merge checks (via Atlassian Forge) allow organizations to create their own logic that runs on merge.

For instance, merge checks can require that all pull request tasks are resolved and that the PR is linked to a valid Jira issue with a specific status (e.g., “ready for merge”). This ensures a clear audit trail and process compliance for regulatory needs.

Bitbucket can also be configured to reset approvals if the source branch is modified after the initial review. This ensures that the final code being merged is the exact code that was reviewed, maintaining consistency and integrity.

AI-enabled development

Bitbucket is adopting AI to increase developer velocity. This includes features like AI-generated pull request descriptions, which automatically summarize changes based on commit messages and code diffs. This reduces toil and helps reviewers quickly grasp the context of a change. The platform is also compatible with major AI code generation tools.

SonarQube's role in the Bitbucket workflow

SonarQube integrates with Bitbucket to provide actionable code intelligence and establish a consistent quality and security standard across all code, whether written by humans or AI.

SonarQube acts as a critical quality gate within the Bitbucket environment:

  • Automated PR Scanning: SonarQube automatically analyzes code pushed to a new branch or pull request. The results—covering bugs, vulnerabilities, and code quality issues—are displayed directly within the Bitbucket pull request interface.
  • Quality Gate Enforcement: Teams can configure Bitbucket's merge checks to require that the SonarQube Quality Gate passes before a merge is allowed. This prevents insecure or non-maintainable code from ever reaching the main branch.
  • Traceability for Leaders: SonarQube helps organizations with compliance and reporting by ensuring that all code committed via the Bitbucket workflow adheres to internal security and code quality policies. This is vital for maintaining confidence in the codebase health as teams adopt AI at scale.

Who should adopt Bitbucket?

Bitbucket is often the preferred choice for development teams that are already deeply invested in the Atlassian ecosystem: Teams using Jira for issue tracking, Confluence for documentation, or Trello for agile planning gain immediate, frictionless integration. It is also a preferred choice for teams looking for a single-vendor solution where their source code management and continuous delivery are natively tied together, eliminating the need to manage external CI servers.

The decision to use Bitbucket is often a strategic one, primarily influenced by a team's existing use of other Atlassian tools (Jira, Confluence). However, for teams with different priorities—such as an all-in-one platform or a larger public-facing community—the primary alternatives listed below should be considered.

Key alternatives to Bitbucket

GitHub

GitHub is the world’s largest host of source code and is widely considered the industry standard, especially for open source projects.

  • Key Advantage: It has the largest developer community. Its platform is a social network for developers, which is a major factor for collaboration, recruiting, and finding open source contributions.
  • CI/CD: GitHub Actions provides a flexible and powerful CI/CD system with an enormous marketplace of community-built actions to automate nearly any workflow.
  • Target User: Nearly any team, particularly those focused on open source, or those prioritizing a vast ecosystem and an excellent, clean developer experience (DX).
  • Hosting: Cloud-hosted is the most common model, with a self-hosted option available for Enterprise plans.

GitLab

GitLab is positioned as an all-in-one DevSecOps platform, aiming to cover the entire software development lifecycle from planning to security and monitoring within a single application.

  • Key Advantage: Its "one platform" philosophy significantly reduces the need to integrate and manage multiple third-party tools. GitLab CI/CD is a mature, robust, and highly customizable part of the platform.
  • CI/CD: The integrated CI/CD is considered best-in-class by many and is woven deeply into the workflow with powerful configuration.
  • Target User: Teams prioritizing a unified toolchain to reduce context switching and licensing complexity. It is also an excellent option for teams requiring a free and robust self-hosted solution (Community Edition).
  • Hosting: Both cloud-hosted and a free, community-driven open source self-hosted option are available.

Azure DevOps (Microsoft)

Azure DevOps is a suite of development services from Microsoft that offers comprehensive tools for project management, Git repositories (Azure Repos), CI/CD pipelines (Azure Pipelines), and artifact management.

  • Key Advantage: Excellent choice for teams already heavily invested in the Microsoft ecosystem, particularly Azure Cloud services or Visual Studio.
  • CI/CD: Azure Pipelines is a highly flexible CI/CD offering that is known for its ability to integrate with any language, platform, or cloud, not just Azure.
  • Target User: Enterprises using Azure for their cloud infrastructure and teams that need a strong separation of concerns between code, boards, and pipelines.