
Continuous integration used to mean running a separate server: installing Jenkins or another CI tool, connecting it to the repository, managing its users and plugins, and keeping its build agents patched. For a team whose code already lives in Bitbucket and whose work is tracked in Jira, that is a lot of machinery to maintain. Bitbucket Pipelines puts the build, test and deployment steps inside the repository, in one YAML file, and runs them in Atlassian's cloud.
This article explains what Bitbucket Pipelines is, how a pipeline is defined and run, where it fits, when another CI/CD tool is the better choice, and how it compares with GitHub Actions, GitLab CI/CD and Jenkins.
What is Bitbucket Pipelines?
Bitbucket Pipelines is the continuous integration and continuous delivery (CI/CD) service built into Bitbucket Cloud, Atlassian's Git hosting service. Every push, pull request or tag can trigger a pipeline that builds the code, runs the tests and deploys the result, without a CI server to install or operate.
Atlassian introduced Pipelines as a beta at its AtlasCamp conference in Barcelona in May 2016 and made it generally available to all Bitbucket Cloud users on 25 October 2016. Since then it has gained deployment environments, service containers for databases in tests, reusable integrations called pipes, self-hosted runners, and shared and dynamic pipeline configurations.
Pipelines is a Bitbucket Cloud feature. Teams on the self-managed Bitbucket Data Center product connect it to external CI/CD tools instead.
How Bitbucket Pipelines works
One file in the repository. A pipeline is defined in bitbucket-pipelines.yml at the root of the repository. Because the configuration is code, it is reviewed in pull requests and versioned with the application it builds.
Triggers. The file can define a default pipeline for every push, separate pipelines for specific branches, pull requests and tags, and custom pipelines that someone starts by hand or on a schedule.
Steps in Docker containers. A pipeline is a sequence of steps. Each step starts a fresh Docker container from an image you choose, such as a Node.js, Python, Java or .NET image, clones the repository into it and runs your script commands. A clean container for every step makes builds repeatable.
Passing work between steps. Caches keep downloaded dependencies between runs, so builds do not fetch the same packages every time. Artifacts pass build output, such as a compiled bundle or a test report, from one step to the next. Steps can run in parallel to shorten long test suites.
Services. A step can start extra containers alongside the build, for example a database or a cache, so integration tests run against real services.
Deployments. Steps can be tagged with a deployment environment such as test, staging or production. Each environment has its own variables, and Bitbucket shows what is deployed where. Production steps can require a manual trigger.
Key features
- No CI server to run: builds run on Atlassian's infrastructure and scale with demand.
- Pipeline as code in a single YAML file next to the source.
- Pipes: ready-made, containerised steps for common tasks, such as deploying to a cloud provider, sending a notification or running a security scan with Snyk.
- Deployment environments with environment-specific variables and deployment history.
- Secured variables and OpenID Connect, so pipelines can reach cloud accounts without long-lived keys stored in the repository.
- Self-hosted runners for builds that must run inside your own network or on specific hardware.
- Jira integration: build and deployment status appears on the related Jira issues.
Where Bitbucket Pipelines is used
- Teams already on Atlassian tools, where code is in Bitbucket and planning in Jira and Confluence.
- Web and API projects that build, test and deploy on every merge, for example running a Jest test suite on each pull request.
- Container delivery: building Docker images and pushing them to a registry, then deploying them to Kubernetes or a managed container service.
- Mobile and front-end builds that produce artifacts for testers on every branch.
- Agencies and product teams that want a working pipeline in minutes from a template rather than a platform project.
When to choose Bitbucket Pipelines, and when not to
Choose Bitbucket Pipelines when:
- Your repositories are on Bitbucket Cloud and you use Jira.
- You want CI/CD without installing, patching or scaling a CI server.
- The builds fit well into Docker containers.
- Onboarding speed matters more than a large marketplace of plugins.
Look elsewhere when:
- Your code is on GitHub or GitLab. GitHub Actions and GitLab CI/CD are the natural choice there.
- You run Bitbucket Data Center on your own servers. Pipelines is a cloud feature, so you need a separate CI server such as Jenkins or Atlassian's Bamboo.
- Builds are long and frequent enough that hosted build minutes become a significant cost, or need hardware that only self-hosted runners can provide.
- You need complex workflow logic or a very large ecosystem of community actions and plugins.
The common friction points are build-minute limits on smaller plans, memory limits per step for large builds, and a configuration file that grows long when many branches and environments are involved. Shared pipeline configurations help with the last one.
Bitbucket Pipelines and its alternatives
| Tool | Hosting | Configuration | Best fit |
|---|---|---|---|
| Bitbucket Pipelines | Bitbucket Cloud, optional self-hosted runners | bitbucket-pipelines.yml | Teams on Bitbucket and Jira |
| GitHub Actions | GitHub, optional self-hosted runners | Workflow YAML files | Repositories on GitHub, large action marketplace |
| GitLab CI/CD | GitLab.com or self-managed GitLab | .gitlab-ci.yml | All-in-one DevOps on GitLab |
| Jenkins | Self-hosted | Jenkinsfile, plugins | Full control, complex or on-premise pipelines |
| Azure Pipelines | Azure DevOps | YAML or classic editor | Microsoft and Azure-centred teams |
The choice usually follows the repository. Bitbucket Pipelines, GitHub Actions and GitLab CI/CD all run containerised steps defined in YAML, and the differences are mostly in ecosystem and integration. Jenkins stands apart: it is a server you run yourself, with thousands of plugins and almost unlimited flexibility, at the cost of maintenance. We cover the wider practice in DevOps and CI/CD: continuous improvement in software development.
How we use Bitbucket Pipelines at Internative
We use Bitbucket Pipelines in projects that value simplicity, fast onboarding and close integration with Atlassian tools. It gives us reliable CI/CD workflows with little operational overhead, and it can run JavaScript test suites built with Jest.
If you want builds, tests and deployments to run on every change without maintaining a CI server, our DevOps services team can help you design the pipeline that fits your repositories and environments.
Frequently asked questions
What is a CI/CD pipeline?
A CI/CD pipeline is an automated sequence of steps that runs when code changes. Continuous integration builds the code and runs the tests on every change; continuous delivery or deployment then packages the result and releases it to test or production environments. In Bitbucket the pipeline is defined in bitbucket-pipelines.yml.
What is Bitbucket used for?
Bitbucket is Atlassian's Git repository hosting service. Teams use it to store code, review changes through pull requests, manage branch permissions and, with Pipelines, build, test and deploy their applications. It integrates closely with Jira and Confluence.
Is Bitbucket Pipelines free?
Bitbucket Cloud has a free plan for small teams that includes a limited number of build minutes per month. Paid plans include more build minutes and extra features, and more minutes can be added. Self-hosted runners use your own infrastructure for the build itself.
What is the difference between GitLab and Bitbucket?
Both host Git repositories with pull or merge requests and built-in CI/CD. GitLab aims to be a single DevOps platform, covering planning, CI/CD, security scanning and package registries, and can be self-managed. Bitbucket focuses on code and CI/CD and relies on Jira and other Atlassian products for planning and tracking.
Bitbucket Pipelines or Jenkins?
Bitbucket Pipelines is hosted and needs no server; you write a YAML file and builds run in containers. Jenkins is a self-hosted automation server with a very large plugin ecosystem and more flexibility, but you have to install, secure and maintain it. Teams on Bitbucket Cloud usually start with Pipelines and keep Jenkins for on-premise or unusual build needs.
Keep reading
The articles that follow this one.



