Hello,
I need to connect Dataform with the local Bitbucket repository.
My question is if I can connect 'DataForm' repositories with Bitbucket Server.
Is there any way to make this need possible?
I have seen in the documentation that it is possible with Bitbucket Cloud:
and I have also seen that it is possible to connect Bitbucket Server with Cloud Build.
https://cloud.google.com/build/docs/automating-builds/bitbucket/connect-repo-bitbucket-server
Thanks,
regards.
Solved! Go to Solution.
Using a Third-Party Git Repository Hosting Service:
Using a Cloud Build Trigger:
Using a Custom CI/CD Pipeline:
These are potential workarounds, and their effectiveness may depend on your specific setup and requirements. It's always a good practice to test and verify each solution in a controlled environment before deploying it to production.
Using a Third-Party Git Repository Hosting Service:
Using a Cloud Build Trigger:
Using a Custom CI/CD Pipeline:
These are potential workarounds, and their effectiveness may depend on your specific setup and requirements. It's always a good practice to test and verify each solution in a controlled environment before deploying it to production.
Hi is this still the case ? I am working on a Dataform solution and in the company I recently joined the main source tool is Bitbucket. I have tried connecting to bitbucket using the HTTPS method and it does not work with the access token.
The solution was through ssh, and my case is with the bitbucket server.
But I'll explain the connection if it helps you.
You must create a secret manager with the value of the bot or user private key to connect to bitbucket.
-----BEGIN OPENSSH PRIVATE KEY----- y -----END OPENSSH PRIVATE KEY-----
Then set bitbucket access to 'Writer' in the bitbucket repository.
Finally in the Dataform configuration add this SecretManager and the ssh-rsa key that you use on the server to download the repository.
I am not sure what I'm doing wrong here but, this is what I have done .
1. Generated SSH Keys using open ssh on a windows machine
2. Added the public key onto my bitbucket personal settings (I also tried adding to workspace settings)
3. Created a Secret with the private key in GCP secrets manager
4. In Dataform, added my ssh url for bitbucket repo, chose the secret I just added, pasted the public key I added onto Bitbucket into the host public key section of the Dataform integration.
I am still getting this error below
That's see good,
the only one thing i think,
if you have set the user permissions in bitbucket repository configuration to 'Writer'.
The user must be the same of the secret manager key.
And other thing be carefull with url ssh, must be the same hen you clone tthe repository.
"if you have set the user permissions in bitbucket repository configuration to 'Writer'.
The user must be the same of the secret manager key"
When you say the user must be the same what do you mean ? When I create the keys, is there a user I can explicitly say they belong to ?
Like is there something from GCP that has username details that needs to match with Bitbucket ?
@danielopezNext I finally figured out what I was doing wrong, on the dataform git connection configuration page, I was suppose to add the bitbucket host public key which is available on bitbucket and not my public key (which is what I was adding).
This solved my problem. Thank you for the help and guiding me through this 👍
@tushensu Where did you get the bitbucket host public key from? Thanks