Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trigger teamcity build on pull request


I want to trigger builds on teamcity when there are commits added to branches, is there a way to do this?



2 answers

1 accepted

2 votes
Answer accepted
Eric Henry Atlassian Team Jul 11, 2017

It depends on your TeamCity setup. Do you have it installed behind a firewall (can it be accessed publicly)?

The short answer is to set up webhooks. If your install is not publicly accessible, then you'll have to jump through some more hoops. Let me know and I can help either way.

It's publically accesible, but I can't figure out how to setup web hooks that work with teamcity.

Do you know of an tutorial on this?

It looks like I was slightly wrong. You'll need to set up polling to make this work (please make sure to set the poll interval to no less than 5 minutes).

These should get you going:

If you'd rather have builds triggered, you'll need something in between Bitbucket and TeamCity to receive the webhook and make the appropriate TeamCity API request (this could be done with an AWS Lambda).

Here's the info for that direction:

Lastly, you can jump in to this HipChat room if you want some more "real-time support":

@Eric Henry Now the Bitbucket has its own Webhooks since 5.4 release. But they looks like I can't use them. There is no authorization, I can't select POST request. Am I wrong? 

Polling is not an option - too many repositories

Eric Henry Atlassian Team Nov 03, 2017

Hello @Max Gorovenko - it sounds like you're using Bitbucket server. You'll want to check in that section, as Bitbucket cloud acts differently for webhooks.

Hi  @Eric Henry . Can you please help on a issue.

Requirement : we want to build a job on Jenkins , On Pull request raised for a Multibranch Pipeline .

If there is a DSL code is there that will be better or plugin also helpful.

What are the requirements and how to configure please guide me . 

Eric Henry Atlassian Team Sep 18, 2018

@Abhisek Tripathy - I would ask this as its own question so you can get some help from the community. Unfortunately I'm not at all familiar with what you're trying to do on Jenkins.

Thanks for your reply

I'd like also to trigger TC builds from a pull request issued in BitBucket Cloud.  The build that needs to run is a post merge.

I think that the answer doesn't lie with with BB WebHooks as our TC server is private. Possibly, it's some configuration of a VCS Trigger in TC - but I'm stumped in how to do this.

Any links or advice please?

@Eric Henry  Is there any way you can point the population using server to actual questions or articles relating the the original question? The link you provided is just a pile of all questions and articles with the tag bitbucket-server.

i want to trigger builds when a issue status change in Jira , this is possible ? 

I have been checking webhooks but i need send a POST request to teamcity.


Anyone knows how can i do that ?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

223 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you