aws-cdk - 您如何检测哪个 sourceAction 触发了 CodePipeline 执行
问题描述
我有一个具有两个S3SourceAction 的 AWS CodePipeline。
目前,在 SourceActionTwo 我有 trigger: codepipeline_actions.S3Trigger.NONE
所以这个动作不会触发管道执行。
我真正想做的是确定 SourceActionTwo 是否触发了管道,在这种情况下,我想跳过管道的 DEPLOY 阶段。我只需要确定哪个源实际触发了执行。
有人做过这个吗??
const builderSourceOutput = new codepipeline.Artifact();
const builderSourceAction = new S3SourceAction({
actionName: `SourceActionTwo`,
bucket: artifactBucket,
bucketKey: 'location.zip'
output: builderSourceOutput,
trigger: codepipeline_actions.S3Trigger.NONE //Rather not do this
});
解决方案
推荐阅读
- javascript - 提交表单firestore for web后如何重定向到新创建的文档页面
- c++ - OpenCV 未定义对 `cv::imread(cv::String const&, int)' 的引用
- javascript - 如何防止单击其他按钮上的表单提交而不是 JavaScript 中的提交按钮
- javascript - 在nestJs异步函数中抛出HttpException
- laravel - 如何在控制器中打印 foreach 循环内容?
- flutter - Flutter 中使用地图和枚举来管理和存储数据
- python - 在 django、pycharm 中找不到页面?
- hibernate - 为什么我得到 @Table 注释的“预期语句或分隔符,得到 ...”错误
- amazon-web-services - 如何使用从 AWS 兑换的免费积分?
- sql - 如何编写查询以将 nvarchar 转换为日期