Batch build in AWS CDK

Viewed 17

What should I modify in the following code to enable batch builds in buid-list mode?

 buildSpec: codebuild.BuildSpec.from object({
    version: '0.2',
    phases: {
      install: {
        'runtime-versions': {
          nodejs: NODE_JS_VERSION
        }
      },
      build: {
        commands: [
          'if [ ! -f "${CODEBUILD_SRC_DIR}/scripts/assume-cross-account-role.env" ]; then echo "assume-cross-account-this.role.env not found in repo" && aws s3 cp s3://${ARTIFACTS_BUCKET_NAME}/admin/cross-account/assume-cross-account-role.env ${CODEBUILD_SRC_DIR}/scripts/; else echo "Overriding assume-cross-account-role.env from repo"; fi',
          '. ${CODEBUILD_SRC_DIR}/scripts/assume-cross-account-role.env',
          'bash ${CODEBUILD_SRC_DIR}/scripts/final-tests.sh'
        ],
      },
    },
    artifacts: {
      files: '**/*'
    },
  })
0 Answers
Related