Stop batch builds in Amazon CodeBuild - Amazon CodeBuild
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Stop batch builds in Amazon CodeBuild

You can use the Amazon CodeBuild console, Amazon CLI,or Amazon SDKs to stop a batch build in Amazon CodeBuild.

Stop a batch build (console)

  1. Open the Amazon CodeBuild console at https://console.amazonaws.cn/codesuite/codebuild/home.

  2. Do one of the following:

    • If the build-project-name:build-ID page is displayed, choose Stop build.

    • In the navigation pane, choose Build history. In the list of builds, select the box for the build, and then choose Stop build.

    • In the navigation pane, choose Build projects. In the list of build projects, in the Name column, choose the link for the build project's name. In the list of builds, select the box for the build, and then choose Stop build.

Note

By default, only the most recent 100 builds or build projects are displayed. To view more builds or build projects, choose the gear icon, and then choose a different value for Builds per page or Projects per page or use the back and forward arrows.

If Amazon CodeBuild cannot successfully stop a batch build (for example, if the build process is already complete), the Stop build button is disabled.

Stop a batch build (Amazon CLI)

  • Run the stop-build-batch command:

    aws codebuild stop-build-batch --id <batch-build-id>

    In the preceding command, replace the following placeholder:

    If Amazon CodeBuild successfully stops the batch build, the buildBatchStatus value in the buildBatch object in the output is STOPPED.

    If CodeBuild cannot successfully stop the batch build (for example, if the batch build is already complete), the buildBatchStatus value in the buildBatch object in the output is the final build status (for example, SUCCEEDED).

Stop a batch build (Amazon SDKs)

For more information about using Amazon CodeBuild with the Amazon SDKs, see the Amazon SDKs and tools reference.