詹金斯和AWS - 将现有阶段从一个构建添加到另一个构建/调用另一个构建

发布于 01-19 20:53 字数 280 浏览 2 评论 0原文

我目前在 Jenkins 有 2 个管道。一种是从声明式:签出 SCM 到声明式:发布操作的完整开发构建,其中包括构建战争、部署到服务器和测试等。

我还有一个 AWS CDK 管道,用于构建后端/前端并进行部署。

有没有办法将相同的部署阶段仅从AWS管道添加到开发管道?因此,我基本上会构建开发管道,将开发部署到服务器,然后将 CDK 部署作为同一管道的一部分。

  • 作为后续,我的意思并不是从 cdk 构建中添加额外的阶段/步骤,而是让开发构建在开发构建成功后触发 cdk 构建。

I currently have 2 pipelines in Jenkins. One is a full development build from Declarative: Checkout SCM through to Declarative: Post Actions with everything in between... build war, deploy to server and test etc.

I also have an AWS CDK pipeline that build's the backend/frontend and deploys.

Is there a way of adding the same deployment stage only from the AWS pipeline to the development pipeline? So I would basically have the development pipeline building with the dev deployment to server followed by the CDK deployment as part of same pipeline.

  • Just as a follow up I don't mean add the extra stages/steps from the cdk build but for the develop build to trigger the cdk build once the develop build has success.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷默言语2025-01-26 20:53:49

只是对此的最后更新。

我刚刚在开发构建中添加了 CDK 阶段,并使用 CDK 管道作为作业,然后触发上游构建。

Just a final update on this.

I just ended up adding the CDK stage in the Develop Build and using the CDK pipeline as a job with then triggers the upstream build.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文