Google Cloud Build timing out

munchybunch picture munchybunch · Mar 10, 2017 · Viewed 8.6k times · Source

I have a Google Cloud Build build that times out after 10 min, 3 sec. Is there a way to extend that timeout?

The build status is set to "Build failed (timeout)" and I'm okay with it taking longer than 10 minutes.

Answer

Paul Lewallen picture Paul Lewallen · Apr 3, 2018

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