I have a build which generally takes longer than 10 minutes to complete, which is the default for Google Cloud builds. They keep timing out at 10 minutes despite setting app/cloud_build_timeout to greater than 10 minutes. I have tried both suggestions from this answer. Neither have worked. Here is my cloudbuild.yaml file:
steps:
- name: node:10.15.1
entrypoint: yarn
args: ['install']
- name: node:10.15.1
entrypoint: yarn
args: ['build-config']
- name: node:10.15.1
entrypoint: echo
args: ["$(printenv) | tr ' ' '\n' > .env && cat .env"]
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['-c', 'gcloud config set app/cloud_build_timeout 1200 && gcloud app deploy']
timeout: 2400s
Why is my build still timing out?
TIMEOUT ERROR: context deadline exceeded- JosephGage