-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(codepipeline-actions): support executeBatchBuild
on CodeBuildAction
#11741
Conversation
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
fd42ebe
to
5565697
Compare
batchEnabled
on CodeBuildAction
batchEnabled
on CodeBuildAction
batchEnabled
on CodeBuildAction
batchEnabled
on CodeBuildAction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great contribution @tjenkinson ! A few minor comments.
packages/@aws-cdk/aws-codepipeline-actions/lib/codebuild/build-action.ts
Outdated
Show resolved
Hide resolved
@@ -176,6 +183,9 @@ export class CodeBuildAction extends Action { | |||
// lazy, because the Artifact name might be generated lazily | |||
configuration.PrimarySource = cdk.Lazy.string({ produce: () => this.props.input.artifactName }); | |||
} | |||
if (this.props.batchEnabled) { | |||
configuration.BatchEnabled = 'true'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we 100% certain this should be a String, and not a Boolean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the example on https://docs.aws.amazon.com/codebuild/latest/userguide/sample-pipeline-batch.html it's a string, which is a bit strange given it's JSON 🤷♂️
Co-authored-by: Adam Ruka <adamruka85@gmail.com>
Pull request has been modified.
3473fdd
to
65d5955
Compare
batchEnabled
on CodeBuildAction
executeBatchBuild
on CodeBuildAction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for the contribution @tjenkinson !
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
See this doc which says
The configuration object it is referring to is this.
I didn't add a test to ensure that
BatchEnabled
is not present by default because I wasn't sure exactly how to do this. Let me know if this is needed. It looks likehaveResourceLike
can take a function onproperties
, so maybe it's doable with that?Closes #11662