Google Cloud Build timing out

天大地大妈咪最大 提交于 2019-12-12 10:35:54

问题


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.


回答1:


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 container builds submit --help for details.




回答2:


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



来源:https://stackoverflow.com/questions/42727071/google-cloud-build-timing-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!