Google Cloud Build timing out

In cloudbuild.yaml you have to add something like timeout: 660s.

E.g.

steps:
- name: 'gcr.io/cloud-builders/docker'
  args: [ 'build', '-t', 'gcr.io/[PRODUCT_ID]/[CONTAINER_IMAGE]', '.' ]
images: 
- 'gcr.io/[PRODUCT_ID]/[CONTAINER_IMAGE]'
timeout: 660s

If you defined your build using a cloudbuild.yaml, you can just set the timeout field; see the full definition of a Build Resource in the documentation.

If you are using the gcloud CLI, it takes a --timeout flag; try gcloud builds submit --help for details.

Example: gcloud builds submit --timeout=900s ...