Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,351
Community Members
 
Community Events
176
Community Groups

Bamboo builds not showing up in Bitbucket Cloud

(Using Bamboo 6.6.1)

I can link to a bitbucket cloud repository and run a build plan associated with that. The plan runs just fine, but the build doesn't show up on bitbucket. On the "Source" page of the repository, on the right side, it shows "0 builds". How do I get the bamboo builds to show up there?

3 answers

1 accepted

0 votes
Answer accepted

complementing @Alexey Chystoprudov message (assuming you're already using Bitbucket Cloud repository type):

At the end of the build, Bamboo send a POST request to bitbucket in order to update the build status, at this point bitbucket.org performs some form of URL validation on the Base URL (Bamboo Administration >> General Configuration) of your Bamboo instance.

If you are seeing a 400 Bad Request in the <bamboo-home>/logs/atlassian-bamboo.log file (you can search for the [BitbucketBuildStatusUpdater] method) please double check if the Base URL is set to an internal hostname rather than a valid URL. E.g. http://hostname:8085/ instead of http://hostname.com.

The actual response is unfortunately not displayed anywhere accessible in Bamboo but it typically looks like this:

{"type": "error", "error": {"fields": {"url": ["Enter a valid URL."]}, "message": "Bad request"}}


I would check your Base URL first but we can also get the exact response from Bitbucket into the Bamboo logs to confirm what's wrong too:

  1. Enable debug logging for the following packages in  Bamboo Administration > Logging setting them to ALL (please note, these changes will revert to the default level after restarting Bamboo):
    com.atlassian.bamboo.plugins.bitbucket.impl.BitbucketApiServiceImpl

    com.atlassian.bamboo.plugins.bitbucket.events.BitbucketBuildStatusUpdater
  2. Trigger a build that should send a build status to bitbucket.org

The response will get logged to the <bamboo-home>/logs/atlassian-bamboo.log file. You can check there why exactly Bitbucket.org is returning a bad request message.

thanks.

Thanks for the post!  This helped me trace my issue with not getting the build status displayed on Bitbucket Cloud pages.  Turns out, Bitbucket doesn't accept URLs without a dot/period in them.  I feel like it's a new "feature" they implemented on Bitbucket because my old setup without the period used to work just fine.

Thank you. The base URL was using the host name instead of the IP address. Having switched that, it works.

0 votes

First of all you should use Bitbucket Cloud repository type. Also to debug you can set DEBUG log level for com.atlassian.bamboo.plugins.bitbucket.events.BitbucketBuildStatusUpdater and check logs if it contains 

Updated build status for ....

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events