interface ReportGroupProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.ReportGroupProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#ReportGroupProps |
Java | software.amazon.awscdk.services.codebuild.ReportGroupProps |
Python | aws_cdk.aws_codebuild.ReportGroupProps |
TypeScript (source) | aws-cdk-lib » aws_codebuild » ReportGroupProps |
Construction properties for ReportGroup
.
Example
declare const source: codebuild.Source;
// create a new ReportGroup
const reportGroup = new codebuild.ReportGroup(this, 'ReportGroup', {
type: codebuild.ReportGroupType.CODE_COVERAGE
});
const project = new codebuild.Project(this, 'Project', {
source,
buildSpec: codebuild.BuildSpec.fromObject({
// ...
reports: {
[reportGroup.reportGroupArn]: {
files: '**/*',
'base-directory': 'build/coverage-report.xml',
'file-format': 'JACOCOXML'
},
},
}),
});
Properties
Name | Type | Description |
---|---|---|
delete | boolean | If true, deleting the report group force deletes the contents of the report group. |
export | IBucket | An optional S3 bucket to export the reports to. |
removal | Removal | What to do when this resource is deleted from a stack. |
report | string | The physical name of the report group. |
type? | Report | The type of report group. This can be one of the following values:. |
zip | boolean | Whether to output the report files into the export bucket as-is, or create a ZIP from them before doing the export. |
deleteReports?
Type:
boolean
(optional, default: false)
If true, deleting the report group force deletes the contents of the report group.
If false, the report group must be empty before attempting to delete it.
exportBucket?
Type:
IBucket
(optional, default: the reports will not be exported)
An optional S3 bucket to export the reports to.
removalPolicy?
Type:
Removal
(optional, default: RemovalPolicy.RETAIN)
What to do when this resource is deleted from a stack.
As CodeBuild does not allow deleting a ResourceGroup that has reports inside of it, this is set to retain the resource by default.
reportGroupName?
Type:
string
(optional, default: CloudFormation-generated name)
The physical name of the report group.
type?
Type:
Report
(optional, default: TEST)
The type of report group. This can be one of the following values:.
- TEST - The report group contains test reports.
- CODE_COVERAGE - The report group contains code coverage reports.
zipExport?
Type:
boolean
(optional, default: false (the files will not be ZIPped))
Whether to output the report files into the export bucket as-is, or create a ZIP from them before doing the export.
Ignored if exportBucket
has not been provided.