Gen*_*del 10 amazon-web-services devops aws-codecommit aws-codepipeline serverless
期望的行为如下:
所需的解决方案将有两个管道,第二个管道由第一个管道的成功触发。
如果您有任何其他想法,我很高兴听到!
提前致谢
小智 11
假设两个 CodePipelines 在同一帐户中运行。您可以在 buildspec.yml 中添加“post_build”阶段。
在 post_build 阶段,您可以使用 AWS 开发工具包命令触发第二个 CodePipeline。
build:
commands:
# npm pack --dry-run is not needed but helps show what is going to be published
- npm publish
post_build:
commands:
- aws codepipeline start-pipeline-execution --name <codepipeline_name>
Run Code Online (Sandbox Code Playgroud)
我建议的第二个管道触发器的解决方案如下:
为了保持清洁,请为每个管道使用单独的桶。
归档时间: |
|
查看次数: |
6897 次 |
最近记录: |