问题
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