停止自动运行构建 (AWS CLI) - AWS CodeBuild
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

停止自动运行构建 (AWS CLI)

If your source code is stored in a GitHub or a GitHub Enterprise Server repository, you can set up GitHub webhooks to have AWS CodeBuild rebuild your source code whenever a code change is pushed to the repository. 有关更多信息,请参阅开始自动运行构建 (AWS CLI).

如果您已启用了此行为,则可以通过运行 delete-webhook 命令将其关闭,如下所示:

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

如果此命令成功,则输出中不会出现任何信息和错误。

注意

仅会从您的 CodeBuild 项目中删除 Webhook。You should also delete the webhook from your GitHub or GitHub Enterprise Server repository.