The desired behavior is as follows:
The desired solution would have two pipelines, the second one triggered by the first one's success.
If you have any other ideas, I'd be delighted to hear!
Thanks in advance
The solution I propose for a second pipeline trigger would be the following:
To keep things clean use a seperate bucket for each pipeline.
Assuming both CodePipelines are running in the same account. You can add "post_build" phase in your buildspec.yml.
In the post_build phase you can trigger the second CodePipeline using AWS SDK commands.
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>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.