Cloud build trigger doesn't see Cloud Source Repository from another project

I want create Cloud Build trigger linked to Cloud Source Repository in another project. But when I'm on a step where I am supposed to choose a repository, the list is empty. I tried different some permission, but without luck. Could someone tell whether such configuration is possible and how do it?


Solution 1:

The cloudbuild trigger can only see repositories that are in the same project.

We ran into the same issue with Bitbucket repos that we are mirroring into the Cloud Source Repos in our projects.

What we discovered was that we needed to mirror the repo into BOTH projects so that the cloudbuild trigger could see the repository. I am not sure how this would work with a repo that only lives in the GCP source code repo.