hi all,
I have serious issues with this basic integration, which should be probably the simplest one and should work by default.
So I am trying to integrated Bamboo 8.0.4 with Bitbucket cloud.
Adding a Linked Repository with shared credentials (SSH or username/password) combo do not work. Setting directly the username and password does not work either.
The only thing that works is defining the repo as a generic GIT repo and then all credentials work fine - but there are issues with permissions based branches - these policies are not respected.
I appreciate your suggestions.
Regards
Hello @Valentin Constantinescu @Daniel Saravia
Bitbucket Cloud account passwords have been deprecated since March 1st. Please switch to application passwords to restore your checkouts.
More information here:
Thank you,
Eduardo Alvarenga
Atlassian Support APAC
Sincerly, I do not understand how this works.
I create an "app password" in the bitbucket user account that I want to use with full permissions for repos.
I add it to the Bamboo "shared credentials". It does not work to add a new BitBucket cloud repo.
I try the username/newly created password directly - the same - it detects not the repos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are on the right way. You need to use your Bitbucket.org username and not your email address as the username.
The app password needs to have the following minimal permissions:
And optionally:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm still not able to connect to bitbucket.
#1 I have created an App Password
#2 I'm using a shared credential with the password auto-generated in step 1
#3 I'm also using my Username as in bitbucket profile settings page
but I'm still getting the same warning message when trying to add a repository and test the connection: We couldn't connect to the repository. The details you provided were invalid.
#4 this is the log in atlassian-bamboo.log:
2022-04-06 09:59:26,349 WARN [http-nio-8085-exec-16] [XsrfResourceFilter] Additional XSRF checks failed for request: http://localhost:8085/rest/analytics/1.0/publish/bulk , origin: https://mytestingserver.pro , referrer: https://mytestingserver.pro/chain/admin/config/editChainRepository.action , credentials in request: true , allowed via CORS: false
and atlassian-bamboo-access.log:
2022-04-06 10:10:44,574 INFO [http-nio-8085-exec-20] [AccessLogFilter] daniel.saravia PUT http://localhost:8085/rest/api/latest/repository/testConnection 413096kb
2022-04-06 10:10:45,257 INFO [http-nio-8085-exec-23] [AccessLogFilter] daniel.saravia POST http://localhost:8085/rest/analytics/1.0/publish/bulk 411336kb
Please any help is appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tested it on my local environment and it worked, so I did a new research and finally found the solution here https://jira.atlassian.com/browse/BAM-18063
In summary,
#1 I had to create an App Password as explained by @Eduardo Alvarenga
#2 Added the configuration to my Tomcat as explained in the above link
#3 Tested again: Connection successful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Daniel Saravia, if you liked the solution please vote on it so other Community members will be likely to find it quickly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have exactly the same issue, it started around 3 weeks ago. I have even re-installed Bamboo on testing server but got the same result: "We couldn't connect to the repository. The details you provided were invalid." And "Failed to load data from Bitbucket. 401 Unauthorized."
But if I use the same credentials directly in Bitbucket cloud, the login is successful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.