bamboo can't connect to bitbucket cloud with Atlassian login

Config:

  • Bamboo server hosted on AWS ec2
  • Source Repository on bitbucket cloud under a team account.

Scenario:

  • Trying to use basic auth from Bamboo to bitbucket so build statuses show up on bitbucket.
  • Forced to use Atlassian login (which has to be an email).

Issue:

  • Authentication fails when trying to link a repository using basic auth credentials of bitbucket (xyz@email.com/password). I can login to bitbucket with the same credentials without any issues.
  • erro: "Failed to load data from Bitbucket. [403 Forbidden]"

What could be the issue here? Is new email based Atlassian login not supported? I also tried to use bitbucket user name - didn't work.

1 answer

0 vote

See https://confluence.atlassian.com/bamboo/bitbucket-cloud-289277000.html?utm_source=dac&utm_medium=blog&utm_campaign=totw, as documented there you must use an app password if using 2 factor authentication.

Alternatively you can switch to SSH private key authentication, it's also explained in the documentation linked.

Hope that helps

Thanks Piotr. I was not using 2 factor authentication. After seeing something suspicious in the logs today, I enabled SSL on the bamboo server with a CA cert and I was able to authenticate and load the repository.

However, I still can't get bamboo build statuses to show up in bitbucket. 

In some other article I  had read that for build statuses to show up I need to use basic auth which is what I am doing now. Still no luck.

I wonder if I need to do something else - from the documentation it looked like bamboo-bitbucket integration should work out of the box as long as 

1. I'm using basic auth.

2. Repository type is bitbucket cloud (and not git).

 

I'm doing both.

Update:

I just redid my bamboo installation from scratch and now the build status shows up on bitbucket. Using basic auth and bitbucket repo type.

Not very scientific way of soling an issue but I'll still take it. Thanks for your help.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,782 views 0 6
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