How to prevent cloud build from running builds in parallel?

谁说我不能喝 提交于 2020-01-24 05:39:26

问题


We are using cloud build for continuous deployment on GCP. When pushing commits to fast (e.g. on development) the triggered builds are running in parallel. Sometimes those interfere which one another. For example when two app engine deployments are running at the same time.

Is there a way or best practise to force builds which are triggered from the same build trigger to run one after another?

Regards, Carsten


回答1:


You can't by setup. But you can define custom builder. Create one which check if a build is running for your project with you repository. If yes, return an error code and crash the build process, else, continue the processing.



来源:https://stackoverflow.com/questions/55905120/how-to-prevent-cloud-build-from-running-builds-in-parallel

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