I am trying to integrate a Bit Bucket Cloud repo to platform.sh
I am following the instructions here - https://docs.platform.sh/integrations/source/bitbucket.html#bitbucket-cloud
The first step is to create an OAuth consumer. I created one with these settings -
The instructions then say to run this command -
platform integration:add \ --project PROJECT_ID \ --type bitbucket \ --repository OWNER/REPOSITORY \ --key CONSUMER_KEY \ --secret CONSUMER_SECRET
I am using "<repo_details_edioted_for_privacy>" as my repository. I am doing this because it is in the URL of my repo. Also if I run git command -v it returns
<repo_details_edioted_for_privacy>
My command looks like this -
platform integration:add \ --project platformprojecthere \ --type bitbucket \ --repository <repo_details_edioted_for_privacy> \ --key keyhere \ --secret secrethere
With the "platformprojecthere" replaced with the correct platform sh project ID
"keyhere" with the Key from OAuth consumers page
"secrethere" with the Secret from the OAuth consumers
I get this error in terminal -
Invalid Bitbucket credentials
Ensure that the OAuth consumer key and secret are valid.
Additionally, ensure that the OAuth consumer has a callback URL set (even just to http://localhost).
If I use the GUI I get this error -
We have trouble accessing the remote repository at Bitbucket: unknown exception
Is there a something else I need to set up with the Bit Bucket repo?
Hi John and welcome to the community!
If you have confirmed that the OAuth consumer key and secret are correct, I would suggest reaching out to platform.sh support team. This integration is not built by Atlassian and we cannot provide much assistance.
The following page has info on how to get support:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.