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?

posta un anno fa389 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande