CodePipeline将覆盖CodeBuild的构件存储桶,我猜它正在将构件移动到自己的存储桶中。您可以通过运行以下命令来查看CodePipeline的存储桶。
codepipeline get-pipeline --name PipelineName--query pipeline.[artifactStore]
[
{
"type": "S3",
"location": "codepipeline-us-east-1-xxxxxxxx"
}
]
如果您正在使用CloudFormation创建管道,则可以使用ArtifactStore配置存储桶。
更新CodePipeline中的ArtifactStore:
目前,我没有看到通过控制台更新ArtifactStore的方法,但可以使用update-pipeline
命令完成。aws codepipeline get-pipeline --name MyFirstPipeline >pipeline.json
编辑管道以更新artifactStore
中的S3存储桶,然后运行命令。
aws codepipeline update-pipeline --cli-input-json file://pipeline.json
我遇到了同样的问题,在 S3 中找不到应该保存 CodeBuild 构件的 MyAppBuild
文件夹。退出网页控制台,然后重新登录,文件夹现在就可见了。
codepipeline
似乎将它放在其他存储桶中。有没有配置选项,让我们可以决定 s3 存储桶呢? - ranjjose