Spaces:
No application file
No application file
File size: 2,863 Bytes
907462b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | **To get information about one or more reports in AWS CodeBuild.**
The following ``batch-get-reports`` example retrieves information about the reports with the specified ARNs. ::
aws codebuild batch-get-reports \
--report-arns arn:aws:codebuild:<region-ID>:<user-ID>:report/<report-group-name>:<report 1 ID> arn:aws:codebuild:<region-ID>:<user-ID>:report/<report-group-name>:<report 2 ID>
Output::
{
"reports": [
{
"arn": "arn:aws:codebuild:<region-ID>:<user-ID>:report/<report-group-name>:<report 1 ID>",
"type": "TEST",
"name": "<report-group-name>",
"reportGroupArn": "arn:aws:codebuild:<region-ID>:<user-ID>:report-group/<report-group-name>",
"executionId": "arn:aws:codebuild:<region-ID>:<user-ID>:build/test-reports:<ID>",
"status": "FAILED",
"created": "2020-10-01T11:25:22.531000-07:00",
"expired": "2020-10-31T11:25:22-07:00",
"exportConfig": {
"exportConfigType": "NO_EXPORT"
},
"truncated": false,
"testSummary": {
"total": 28,
"statusCounts": {
"ERROR": 5,
"FAILED": 1,
"SKIPPED": 4,
"SUCCEEDED": 18,
"UNKNOWN": 0
},
"durationInNanoSeconds": 94000000
}
},
{
"arn": "arn:aws:codebuild:<region-ID>:<user-ID>:report/<report-group-name>:<report 2 ID>",
"type": "TEST",
"name": "<report-group-name>",
"reportGroupArn": "arn:aws:codebuild:<region-ID>:<user-ID>:report-group/<report-group-name>",
"executionId": "arn:aws:codebuild:<region-ID>:<user-ID>:build/test-reports:<ID>",
"status": "FAILED",
"created": "2020-10-01T11:13:05.816000-07:00",
"expired": "2020-10-31T11:13:05-07:00",
"exportConfig": {
"exportConfigType": "NO_EXPORT"
},
"truncated": false,
"testSummary": {
"total": 28,
"statusCounts": {
"ERROR": 5,
"FAILED": 1,
"SKIPPED": 4,
"SUCCEEDED": 18,
"UNKNOWN": 0
},
"durationInNanoSeconds": 94000000
}
}
],
"reportsNotFound": []
}
For more information, see `Working with reports <https://docs.aws.amazon.com/codebuild/latest/userguide/test-report.html>`__ in the *AWS CodeBuild User Guide*.
|