Cloud Build will reproducibly fail if the source tree contains a symlink. This repo provides a reproduction...
gcloud builds submit --config=cloudbuild.yaml ./nosymlink
gcloud builds submit --config=cloudbuild.yaml ./symlink
...the only difference between the directories is that "symlink" contains a symlink. (Which is not even used in the build FWIW.)