在通过CDK定义代码EPIPELINE时,如何自动防止其第一次运行?

发布于 2025-01-18 12:12:32 字数 188 浏览 1 评论 0原文

我在 CDK 项目中定义了一些 CodePipelines,但遇到了一个恼人的问题:每当第一次创建管道时,它都会自动开始执行。即使我禁用源的triggerOnPush,此行为仍然存在。

有人知道如何禁用这种行为吗?

我知道有一些解决方法,例如添加“手动批准”步骤或其他步骤,但这不是我想要的。我只想创建管道并将其置于“从未运行”状态。

I am defining some CodePipelines in my CDK project, but am running into an annoying issue: Whenever the pipeline is created for the 1st time, it automatically starts to execute. This behavior persists even if I disable triggerOnPush for the source.

Anyone know how to disable this behavior?

I know there are some workarounds like adding a "manual approve" step or something, but this is not what I want. I just want to create the pipeline and leave it in a "never ran" state.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文