Why can't I override the timeout on my Google Cloud Build?

后端 未结 1 1542
别那么骄傲
别那么骄傲 2021-01-15 00:16

I am attempting to setup a CI Pipeline using Google Cloud Build.

I am attempting to deploy a MeteorJS app which has a lengthy build time - the default build timeout

1条回答
  •  离开以前
    2021-01-15 00:22

    This timeout error comes from app engine deployment itself which has 10 min timeout by default.

    You will need to update app/cloud_build_timeout property inside container itself like this:

    steps:
    - name: 'gcr.io/cloud-builders/gcloud'
      entrypoint: 'bash'
      args: ['-c', 'gcloud config set app/cloud_build_timeout 1200 && gcloud app deploy']
    timeout: 1200s
    

    Update

    Actually simpler solution:

    steps:
    - name: 'gcr.io/cloud-builders/gcloud'
      args: ['app', 'deploy']
      timeout: 1200s
    timeout: 1200s
    

    0 讨论(0)
提交回复
热议问题