-
Notifications
You must be signed in to change notification settings - Fork 4k
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
CodeBuild: buildStatusName does not work for batch builds #32686
Comments
@jared-christensen Good morning. Thanks for opening the issue. Below is the analysis:
From CDK perspective, it is synthesizing the correct CFN template. Rest is handled by CloudFormation when CDK code is deployed and then by AWS CodeBuild service. Based on general understanding of I'm unsure if in your use case you would like to set const cfnProject = project.node.defaultChild as codebuild.CfnProject;
cfnProject.addPropertyOverride('BuildBatchConfig.BatchReportMode', 'REPORT_INDIVIDUAL_BUILDS'); Thanks, |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
@jared-christensen Thanks for the confirmation. Please confirm if we could close this issue. The analysis in #32686 (comment) was based on some assumptions since the minimal CDK code was not provided for reproduction. |
yes it can be closed |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
The buildStatusName property in AWS CodeBuild, which allows customization of the Bitbucket commit status name, does not work for batch builds. When a batch build is triggered, the commit status name defaults to "AWS CodeBuild $AWS_REGION ($PROJECT_NAME)", ignoring the custom value provided in buildStatusName.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The buildStatusName value should be applied, and the Bitbucket commit status should reflect the custom name, even for batch builds.
Current Behavior
The Bitbucket commit status name defaults to "AWS CodeBuild $AWS_REGION ($PROJECT_NAME)", and the custom buildStatusName value is ignored for batch builds.
Here’s an example of the issue in Bitbucket:
The build highlighted in the image is a batch build, and you can see that the buildStatusName property is not respected—it uses the default naming convention.
The other builds in the list are regular CodeBuilds, where the custom buildStatusName works as expected.
Reproduction Steps
dwp-pr-e2e.ts.zip
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.173.3 (build 00db01f)
Framework Version
2.173.3
Node.js Version
22.12.0
OS
15.2 (24C101)
Language
TypeScript
Language Version
5.5.4
Other information
The AWS CDK documentation for buildStatusName does not mention any differences in behavior between regular builds and batch builds.
The text was updated successfully, but these errors were encountered: