Stop running builds automatically (Amazon CLI) - 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 running builds automatically (Amazon CLI)

If your source code is stored in a GitHub or a GitHub Enterprise Server repository, you can set up GitHub webhooks to have Amazon CodeBuild rebuild your source code whenever a code change is pushed to the repository. For more information, see Start running builds automatically (Amazon CLI).

If you have enabled this behavior, you can turn it off by running the delete-webhook command as follows:

aws codebuild delete-webhook --project-name <project-name>
  • where <project-name> is the name of the build project that contains the source code to be rebuilt.

If this command is successful, no information and no errors appear in the output.

Note

This deletes the webhook from your CodeBuild project only. You should also delete the webhook from your GitHub or GitHub Enterprise Server repository.