Bitbucket Pipelines

Atlassian container-per-step CI: bitbucket-pipelines.yml structure, caches versus artifacts, the shared per-step memory ceiling people hit, self-hosted runners, deployments, OIDC, and an honest comparison to GitHub Actions and GitLab CI.

Overview

Atlassian's CI, and the world it signals

Bitbucket Pipelines is configured by one bitbucket-pipelines.yml at the repository root and runs as a series of Docker containers. Many enterprises standardized on Atlassian (Jira, Confluence, Bitbucket), so their build systems live here rather than on GitHub or GitLab. A job description naming Bitbucket tells you which world you are entering.

Two facts explain most of what surprises people about the product. The first is how a step runs. The second is how a step's memory is shared.

Key concepts

  • Container per step
  • Pipeline types
  • Artifacts
  • Caches
  • Step size and shared memory
  • Runners and runs-on
  • Deployment variables
  • Pipes

Interview questions

  • Explain caches versus artifacts in Bitbucket Pipelines, including the limits, and describe a bug caused by confusing them.
  • A step is being killed with no useful error. Walk through diagnosing it, and explain the memory model.
  • Design a Bitbucket pipeline for a native application that must build on Linux and Windows, sign on macOS, deploy to staging automatically, and require approval for production.
  • How do variables, secured variables, and OIDC work in Bitbucket Pipelines, and how do you get cloud credentials out of the repository?
  • Compare Bitbucket Pipelines honestly with GitHub Actions and GitLab CI. Where is it genuinely weaker?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio