Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Connect Dataform with Bitbucket Server

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:

https://cloud.google.com/dataform/docs/connect-repository#authenticate_a_remote_repository_through_s...

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

https://cloud.google.com/build/docs/automating-builds/bitbucket/build-repos-from-bitbucket-server-pr...

Thanks,

regards.

 

 

Solved Solved
0 8 2,123
1 ACCEPTED SOLUTION

Currently, it is not possible to connect Dataform repositories with Bitbucket Server. In the meantime, here are a few potential workarounds that you might want to consider:
 
  1. Using a Third-Party Git Repository Hosting Service:

    • Clone your Bitbucket Server repository to GitHub or GitLab.
    • Connect your Dataform repository to the GitHub or GitLab repository.
    • Ensure synchronization between your Bitbucket Server repository and GitHub or GitLab so that changes are mirrored.
    • Dataform will automatically build and deploy your repository when changes are pushed to GitHub or GitLab.
  2. Using a Cloud Build Trigger:

    • Configure a webhook on your Bitbucket Server repository to notify Cloud Build when changes are pushed.
    • Create a Cloud Build trigger that listens for events from the webhook.
    • Configure the Cloud Build trigger to build your Dataform repository.
    • Cloud Build will trigger a build of your Dataform repository when changes are pushed to your Bitbucket Server repository.
  3. Using a Custom CI/CD Pipeline:

    • Create a custom CI/CD pipeline that builds and deploys your Dataform repository.
    • Configure the CI/CD pipeline to listen for events from your Bitbucket Server repository.
    • The CI/CD pipeline will be triggered, and your Dataform repository will be built and deployed when changes are pushed to your Bitbucket Server repository.

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.

View solution in original post

8 REPLIES 8