Latest guidance on building BitBucket pull requests in TeamCity

What is the latest guidance on setting up TeamCity to build BitBucket pull requests, particularly in regard to using TeamCity 2017.1 with BitBucket Cloud? Most of the posts I've seen focus on older versions of TeamCity or Stash.

I really want to be able to trigger a build when the PR is created of the merged output; I can then use the Commit Status Publisher to send those results back to BitBucket so that TeamCity can approve the PR (in terms of code compiling, tests passing, no FxCop violations etc).

1 answer

1 accepted

0 votes
Accepted answer
Eric Henry Atlassian Team Jul 11, 2017

Sorry for the delay in response. Is your TeamCity install behind a firewall?

Typically we use webhooks and the Bitbucket API to enable this. I can help you get going if you haven't figured things out already. Feel free to jump in to this HipChat room to ask questions:


So, is there some documentation how to integrate BitBucket with TeamCity?
The chat room mentioned above appears to be empty.

Eric Henry Atlassian Team Aug 10, 2017

The HipChat room won't show any back history, and devs are usually in the room during Pacific Timezone business hours.

As far as documentation, there is more information in this community question.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,071 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you