amazon-web-services - 如何为每次代码 checkin 禁用 aws codepipeline 触发器

标签 amazon-web-services aws-codepipeline

我正在研究 AWS CodePipeline,实际上,我有一个现有的 AWS Codepipeline 设置用于 3 个管道作业。我们使用 Bitbucket 作为源代码提供者,在 codepipeline 中,我们已经在 Bitbucket repo 与 codepipeline 访问之间建立了连接。现在所有管道都在执行管道中的每个代码 checkin 。现在我想禁用这些自动触发管道。我们需要手动执行所有管道。请帮忙解决这个问题。

最佳答案

要为 bitbucket 中的每个代码检查禁用 AWS Codepipeline 触发器,您必须转到代码管道的 SOURCE 配置(bitbucket 配置),将有一个 WebHook 复选框,您必须取消选中它。

Disable the BitBucket Trigger in CodePipeline[

您可以在 CLI 或控制台中手动启动管道

客户端:

aws codepipeline start-pipeline-execution --name MyFirstPipeline 

控制台:

  1. 登录 AWS 管理控制台并在 http://console.aws.amazon.com/codesuite/codepipeline/home 打开 CodePipeline 控制台.

  2. 在名称中,选择您要启动的管道的名称。

  3. 在管道详细信息页面上,选择发布更改。这会启动在通过管道的源操作中指定的每个源位置中可用的最新修订。

更多详情:

https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-rerun-manually.html

关于amazon-web-services - 如何为每次代码 checkin 禁用 aws codepipeline 触发器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61585578/

相关文章:

amazon-web-services - 当 aws codebuild 完成时,将整个 cloudwatch 日志发送到 slack

amazon-web-services - 在 AWS SAM/Cloudformation 模板中管理阶段和生产环境以及 CI/CD 支持

c# - Amazon EC2 .NET API,启动随机实例

amazon-web-services - AWS 代码构建失败

python-3.x - 在 AWS Lambda Python 函数中解析 CloudWatch 警报

amazon-web-services - AWS S3/Lambda 在自动上传时复制对象?

amazon-web-services - 通过 CDK CodePipelines 将基础设施更改部署到现有堆栈

aws-codepipeline - 如何在 AWS CodeBuild Standard Linux 2.0 (Ubuntu 18.0) 中安装 Maven

amazon-web-services - AWS ELB 的 Gremlin 服务器健康检查端点

amazon-web-services - AWS 批处理 : mount an efs volume into a container using cloud formation