Bamboo OnDemand Trigger against BitBucket
Asked by Scott Peterson:

Hello:

I am trying to get Bamboo to run whenever I commit code to my BitBucket repository. However, the trigger does not appear to be working. I setup a trigger in Bamboo Ondemand, and can successfully run a build manually. I also setuo the Bamboo service in BitBucket. However, committing code to BitBucket does not seem to do anything. Many resources I've found refer to hosted Bamboo, so I'm not certain if my desired setup is even possible.

Any help would be most appreciated.

Scott


Answers:
author: Scott Peterson
body: This turned out to my issue. When entering the information for the Bamboo service in BitBucket, I entered my BitBucket Username, not my BamBoo OnDemand Username. Once the login information was correct, everything worked just fine...

comments: author: Steve Muskiewicz
body: Can you elaborate on where in Bitbucket you enter Bamboo credentials? I don't recall seeing that anywhere?


author: Scott Peterson
body: When you are in a repository on BitBucket, click on the "Gear" icon in the upper right (or type 'r' followed by 'a'). Then you will see the Admin page. On the left you will see links, one of which says "Services." Click on Services and you will see the Services page, as shown in the last of my screenshots above. Enter the Bamboo credentials, plan and URL as shown.


author: Steve Muskiewicz
body: Thanks, I hadn't looked into the Services settings.

Just so I follow you right (since I'm having the same issue as posed in your original question), I need to configure Bitbucket to be aware of my Bamboo OnDemand instance in addition to configuring my Bamboo plan to point at Bitbucket in order to get my triggers to work properly?

Thanks!


author: Scott Peterson
body: Yes, having both things in place appears to get it done, especially when you set up a trigger to automatically build on a commit.


author: Steve Muskiewicz
body: Thanks, I guess we've been spoiled with the existing OnDemand suite, I'm used to only having to look in one place (Bamboo plan config screens) to set up everything. (And it is somewhat confusing when "Bitbucket" is listed right in the source repository menu in the plan configuration and when the "triggers" screen makes no mention of the need to explicitly configure the Bamboo service within Bitbucket)

Hopefully someday Bitbucket will become a little more integrated into the OnDemand suite of tools...


author: evzijst
body: Without furher information it's hard to tell what's going wrong, but while investigating I have found a bug the Bamboo service that could be what is affecting you.

I've deployed a fix for this. If this does not address the issue for you, please email us at [support@bitbucket.org](mailto:support@bitbucket.org) and we can investigate further.

comments: author: Scott Peterson
body: Sorry for the lack of information, but thanks for looking into this for me. I can tell you that:

* I can see the latest commit in BitBucket when I add a test file to my project
* I previously added a new POST service to the repository and I see a post at [http://posttestserver.com/](http://posttestserver.com/data/2013/07/19/12.25.101916154885) when I commited code (just a test file), before and after your change.

It seems that BitBucket is sending information, but Bamboo wasn't getting notified. My Bamboo instance was (and still is) up and running, having been started manually, but no build runs aftger a commit. I added various screenshots so you can see how things are set:

![](../../upfiles/2013-07-19_15_49_08-Bamboo_OnDemand_Trigger_against_BitBucket_-_Atlassian_Answers.png)

![](../../upfiles/2013-07-19_15_51_26-Test_Project_-_Test_Plan_with_custom_instance_-_Default_Job__Edit_Job_Configurat.png)

![](../../upfiles/2013-07-19_15_53_07-Test_Project_-_Test_Plan_with_custom_instance_-_Tasks_-_Source_Code_Checkout.png)

![](../../upfiles/2013-07-19_15_57_04-Test_Project_-_Test_Plan_with_custom_instance__Edit_Plan_Configuration_-_Bamboo.png)

![](../../upfiles/2013-07-19_15_59_39-Bitbucket.png)


author: aMarcus
body: Can you report to support the details of your OnDemand instance, the build plan and which repo this is on? We can look into the issue deeper from there.


Tags: bitbucket-cloud

cloud