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

The code changes happening on cloud build(deployment) is not reflecting in repository

I'm using Cloud Build to deploy automatically during code push(Bitbucket). I'm changing the versions on prebuild which has a script to increase the number on JSON file.

The changes are not reflected on the mirrored repository and also I could not able to push that code to the bitbucket repo. how can I push the code from google cloud to bitbucket? or is there any other way?

 

Thanks

0 1 137
1 REPLY 1

The following documentation[1] provide you with a guide on how to mirror a Bitbucket repository to Cloud Source Repositories. 

Note that only Bitbucket Cloud and GitHub Cloud repositories can be mirrorred to Cloud Source Repositories; self-hosted Bitbucket and GitHub mirroring are not supported.

Regarding The changes are not reflected on the mirrored repository, you can manually force a sync[2] if necessary. Cloud Source Repositories automatically syncs with the mirrored repository may not immediately reflect changes. 

[1] https://cloud.google.com/source-repositories/docs/mirroring-a-bitbucket-repository#mirror_a_bitbucke...

[2] https://cloud.google.com/source-repositories/docs/mirroring-a-bitbucket-repository#force_a_repositor...