TeamCity Bitbucket VCS Integration

Build quality into your software development lifecycle with TeamCity’s Bitbucket integration. Enable rapid, reliable feedback at each stage of the development process.

TeamCity Automates Build, Test, and Deployment Tasks for your Bitbucket-hosted Projects

With support for Bitbucket Cloud, Bitbucket Data Center, and Bitbucket Server (previously known as Stash), TeamCity provides a highly configurable continuous integration, delivery, and deployment platform.

  • Configure automated CI/CD pipelines to verify your code each time changes are committed, when particular files are updated, or on a regular schedule.
  • Сombine source code from multiple version control systems, easing the transition between hosting systems or enabling you to combine tools and reap the benefits of each.
  • Whether you’re using Git or Mercurial, TeamCity integrates seamlessly with Bitbucket, managing dependencies, automating checks, and publishing artifacts.

TeamCity is available in two formats:

Bitbucket Continuous Integration

Provide your software development teams with regular feedback on their code changes to improve code quality and increase velocity.

Automate builds

Trigger automated build, test, and deployment steps on each commit to the repo, when changes are made to selected branches, based on the details in the commit message, or by the author of the change.

Accelerate feedback

Configure both sequential steps to reuse artifacts from earlier stages of the pipeline and parallel workloads to accelerate feedback on independent tasks, such as cross-platform testing.

Analyze build data

Analyze build data and identify opportunities to streamline your CI/CD process further with the help of build statistics charts.

Verify Bitbucket Pull Requests

Accelerate feedback and keep your main branch ready for release by running automated code analysis, builds, and tests on pull requests. TeamCity’s Pull Request build feature monitors your VCS and initiates your automated checks each time a pull request branch is opened.

Tie your CI/CD pipeline into your code review

Tie your CI/CD pipeline into your code review workflow by running automated builds and tests on pull requests and ensure all issues are fixed before peer review begins.

Learn more about how TeamCity supports Bitbucket Cloud pull requests.

Use build configuration templates

Configure a custom set of build and test jobs to run each time a pull request is opened, or use a build configuration template to simplify running your entire CI/CD pipeline before changes are merged.

For more information, see the Build Configuration Templates section in the TeamCity documentation.

Publish progress to the Bitbucket UI

Publish the progress and outcomes of CI/CD checks to the Bitbucket UI with TeamCity’s commit status publisher.

Find out more in our docs.

Merge pull requests automatically

Once builds and tests have been completed successfully, merge pull requests automatically and trigger the next stage of your pipeline.

Learn more about the automatic merge build feature in the TeamCity documentation.

Bitbucket Issues and Jira Integrations

Keep track of the bugs and tasks in each build thanks to TeamCity’s integrations with both Jira and Bitbucket Cloud’s issue tracker. TeamCity automatically detects Bitbucket issue IDs and Jira issue keys, fetches the issue details and statuses, and provides a link to the appropriate issue tracker for a seamless developer experience.

TeamCity accelerates feedback with on-the-fly test results and easy access to the build log so you can investigate any failures without delay.

Commit status publisher

View the progress of automated builds and tests in real time directly from the TeamCity web UI, or publish updates straight to Bitbucket.

Flaky test detection

Automatic flaky test detection identifies any automated tests that are undermining your CI/CD process so that you can mute them while you investigate.

Intelligent test parallelization

Enable intelligent test parallelization to divide tests between available build agents dynamically, while keeping your build configuration transparent and straightforward.

Contextual links

Configure failure conditions for each pipeline and get a clear pass or fail indication for each build. Contextual links take you straight to the relevant part of the build log, so you can start investigating failures quickly.

A Seamless Developer Experience

With integrations available for commonly used tools at every stage of the software development process, TeamCity fits seamlessly into your developers’ workflows.

Get started in minutes

Create a TeamCity project and start your first build within minutes. Simply enter your Bitbucket repo URL and allow TeamCity to infer project settings and detect build steps automatically. Allow team members to log in to TeamCity with their existing Bitbucket Cloud account.

Integrated approach

Get access to CI/CD features without switching context thanks to TeamCity’s integrations with Visual Studio and all IntelliJ Platform-based IDEs.

Automatic notifications

Stay up to date on both successful builds and failing tests with automated Slack, email, and browser notifications.

Flexible, Scalable Build Infrastructure

As a cross-platform solution with full support for Docker containers, TeamCity allows you to run your CI/CD pipeline wherever you want – on dedicated test machines located on site, in cloud-hosted VMs or containers, on local developer kits, or in a Kubernetes cluster.

FAQ: TeamCity’s CI/CD integration with Bitbucket

Is TeamCity integration with Bitbucket free?

Just like other VCS integrations, the Bitbucket integration is available in all TeamCity versions, including the free self-hosted version. You can also try TeamCity Cloud for free with a 14-day trial period.

Does TeamCity support Bitbucket pull requests?

Yes, TeamCity comes with the Bitbucket pull request integration. You can set up TeamCity to automatically detect new pull requests made in your Bitbucket Cloud repository and run builds on them.

How can I get started with TeamCity Bitbucket VCS integration?

To start building your Bitbucket projects in TeamCity, first you need to set up your TeamCity account. You can register for a free TeamCity Cloud trial using your Bitbucket account. TeamCity will ask you to authorize your account, and you can start configuring your CI/CD pipelines right away.

What other version control systems does TeamCity support?

In addition to the Bitbucket integration, TeamCity also supports GitHub, Gitlab, Perforce, Mercurial, Azure DevOps, and others. Find out more information about TeamCity VCS integrations.

Get started with TeamCity

Powerful CI/CD for teams running on Bitbucket