Spaces:
No application file
No application file
File size: 5,211 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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | **To stop a build of an AWS CodeBuild build project.**
The following ``stop-build`` example stops the specified CodeBuild build. ::
aws codebuild stop-build --id my-demo-project:12345678-a1b2-c3d4-e5f6-11111EXAMPLE
Output::
{
"build": {
"startTime": 1556906956.318,
"initiator": "my-aws-account-name",
"projectName": "my-demo-project",
"currentPhase": "COMPLETED",
"cache": {
"type": "NO_CACHE"
},
"source": {
"insecureSsl": false,
"location": "codebuild-us-west-2-123456789012-input-bucket/my-source.zip",
"type": "S3"
},
"id": "my-demo-project:1a2b3c4d-5678-90ab-cdef-11111EXAMPLE",
"endTime": 1556906974.781,
"phases": [
{
"durationInSeconds": 0,
"phaseType": "SUBMITTED",
"endTime": 1556906956.935,
"phaseStatus": "SUCCEEDED",
"startTime": 1556906956.318
},
{
"durationInSeconds": 1,
"phaseType": "QUEUED",
"endTime": 1556906958.272,
"phaseStatus": "SUCCEEDED",
"startTime": 1556906956.935
},
{
"phaseType": "PROVISIONING",
"phaseStatus": "SUCCEEDED",
"durationInSeconds": 14,
"contexts": [
{
"message": "",
"statusCode": ""
}
],
"endTime": 1556906972.847,
"startTime": 1556906958.272
},
{
"phaseType": "DOWNLOAD_SOURCE",
"phaseStatus": "SUCCEEDED",
"durationInSeconds": 0,
"contexts": [
{
"message": "",
"statusCode": ""
}
],
"endTime": 1556906973.552,
"startTime": 1556906972.847
},
{
"phaseType": "INSTALL",
"phaseStatus": "SUCCEEDED",
"durationInSeconds": 0,
"contexts": [
{
"message": "",
"statusCode": ""
}
],
"endTime": 1556906973.75,
"startTime": 1556906973.552
},
{
"phaseType": "PRE_BUILD",
"phaseStatus": "SUCCEEDED",
"durationInSeconds": 0,
"contexts": [
{
"message": "",
"statusCode": ""
}
],
"endTime": 1556906973.937,
"startTime": 1556906973.75
},
{
"durationInSeconds": 0,
"phaseType": "BUILD",
"endTime": 1556906974.781,
"phaseStatus": "STOPPED",
"startTime": 1556906973.937
},
{
"phaseType": "COMPLETED",
"startTime": 1556906974.781
}
],
"artifacts": {
"location": "arn:aws:s3:::artifacts-override/my-demo-project",
"encryptionDisabled": false,
"overrideArtifactName": true
},
"buildComplete": true,
"buildStatus": "STOPPED",
"encryptionKey": "arn:aws:kms:us-west-2:123456789012:alias/aws/s3",
"serviceRole": "arn:aws:iam::123456789012:role/service-role/my-codebuild-service-role",
"queuedTimeoutInMinutes": 5,
"timeoutInMinutes": 60,
"environment": {
"type": "LINUX_CONTAINER",
"environmentVariables": [],
"computeType": "BUILD_GENERAL1_MEDIUM",
"privilegedMode": false,
"image": "aws/codebuild/standard:1.0",
"imagePullCredentialsType": "CODEBUILD"
},
"logs": {
"streamName": "1a2b3c4d-5678-90ab-cdef-11111EXAMPLE",
"deepLink": "https://console.aws.amazon.com/cloudwatch/home?region=us-west-2#logEvent:group=/aws/codebuild/my-demo-project;stream=1a2b3c4d-5678-90ab-cdef-11111EXAMPLE",
"groupName": "/aws/codebuild/my-demo-project"
},
"arn": "arn:aws:codebuild:us-west-2:123456789012:build/my-demo-project:1a2b3c4d-5678-90ab-cdef-11111EXAMPLE"
}
}
For more information, see `Stop a Build (AWS CLI) <https://docs.aws.amazon.com/codebuild/latest/userguide/stop-build.html#stop-build-cli>`_ in the *AWS CodeBuild User Guide*.
|