AWS CodeBuild: Is it possible to queue builds in a batch if it exceeds concurrent build limit?

0

Using this build-matrix example from https://docs.aws.amazon.com/codebuild/latest/userguide/batch-build.html will create 6 builds

batch:
  build-matrix:
    static:
      ignore-failure: false
    dynamic:
      buildspec: 
        - matrix1.yml
        - matrix2.yml
      env:
        variables:
          MY_VAR:
            - VALUE1
            - VALUE2
            - VALUE3

If I have a concurrent build limit set to 5 on the project, it will cause all of the builds to fail. I would expect if the batch configuration is set to allow more builds than the concurrent limit then it would queue the extra builds. Is it possible to do this with CodeBuild or would it make more sense to use something like Batch instead?

preguntada hace un año389 visualizaciones
1 Respuesta
0

Hello,

The answer to your question is yes, if you have a limit for 5 concurrent builds on account level, yet you want to run more builds, then it those builds would be getting queued in CodeBuild and will proceed when the concurrency build limit is satisfied again and comes under the 5 build threshold. However, if you set a hard build limit on project level, it will fail immediately. This project level limit termination is mentioned in the official documents also. I would suggest you to please refer the same.

Thank you !

AWS
INGENIERO DE SOPORTE
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas