CmdID / aws / aws codebuild
aws codebuild batch-get-build-batches
Retrieves information about one or more batch builds. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To view details of builds in AWS CodeBuild.
The following batch-get-build-batches example gets information about build batches in CodeBuild with the specified IDs.
aws codebuild batch-get-build-batches --ids codebuild-demo-project:a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify--idsAn array that contains the batch build identifiers to retrieve.Its output, shortened
{
"buildBatches": [
{
"id": "codebuild-demo-project:a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"arn": "arn:aws:codebuild:us-west-2:123456789012:build-batch/codebuild-demo-project:a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"startTime": "2020-11-03T21:52:20.775000+00:00",
"endTime": "2020-11-03T21:56:59.784000+00:00",
"currentPhase": "SUCCEEDED",
"buildBatchStatus": "SUCCEEDED",
"resolvedSourceVersion": "0a6546f68309560d08a310daac92314c4d378f6b",
"projectName": "codebuild-demo-project",
"phases": [
{
"phaseType": "SUBMITTED",
"phaseStatus": "SUCCEEDED",
"startTime": "2020-11-03T21:52:20.775000+00:00",
"endTime": "2020-11-03T21:52:20.976000+00:00",
"durationInSeconds": 0
},
{
"phaseType": "DOWNLOAD_BATCHSPEC",
"phaseStatus": "SUCCEEDED",
"startTime": "2020-11-03T21:52:20.976000+00:00",
"endTime": "2020-11-03T21:52:57.401000+00:00",
"durationInSeconds": 36
},
{
"phaseType": "IN_PROGRESS",
"phaseStatus": "SUCCEEDED",
"startTime": "2020-11-03T21:52:57.401000+00:00",
… 133 more linesFor more information, see Run builds in batches in the AWS CodeBuild User Guide.
Options
--idsAn array that contains the batch build identifiers to retrieve.