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?

已提问 1 年前389 查看次数
1 回答
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
支持工程师
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容