Connecting Bitbucket Server host in GCP Cloud Build. Anyone ever had a success?

Our VC tool is Bitbucket Server and allows Internet traffic.

We are building in GCP and trying to use Cloud Build. We probably have tried 5 different solutions across a month with no success.

Wondering if anyone was successful and could share their experiences.

2nd Gen attempts Can't even create a host connection. only supports Bitbucket Data Center, so trying that.

  • Error on Public Internet: cloud build "failed to verify authorizer token: invalid character '<' looking for beginning of value"
  • Error on Private Network Access cloud build "failed to verify authorizer token: Get"url/rest/api/latest/profile/recent/repos": harpoon unreachable error UNREACHABLE_Connect_timeout".

1st Gen attempts Successfully created a host. On Bitbucket can see authorization attempt. However fails on trigger step Also trying to connect via Data Center Option, via Private Network Access. Trigger Error "Fatal: unable to update url base from redirection Asked for:" url.git/info/refs?service=git-upload-pack" Redirect: url/my.logout.php3?errorcode=19

ERROR: error fetching git source:generic::unknown.

What is interesting that when entered the asked for url asks for user name and password (the trigger part), but the host connection is set up on token.

Thank you for your suggestions.

Tried all the options available from the cloud build config part.

0 1 103
1 REPLY 1

Hi @Dovile,

Welcome to Google Cloud Community!

Please check if the following is properly configured:

If the steps above are properly set-up, please follow this step on creating a Bitbucket Server trigger

If it still provides similar errors, you may want to file a bug or reach out to Google Cloud Support for additional assistance in resolving this issue.

Hope this helps.