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?

asked a year ago370 views
1 Answer
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
SUPPORT ENGINEER
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions