CodeBuild 成功但 CodeDeploy 失败
CodeBuild success but CodeDeploy fails
Codebuild 成功完成但 CodeDeploy 失败。检查错误消息状态 "The action failed because either the artifact or the Amazon S3 bucket could not be found." 检查 codepipeline 存储桶后,我在那里看到了输入工件,但没有看到输出工件。这是我用于 buildspec.yml 的代码:
version: 0.2
phases:
pre_build:
commands:
- echo "Entered the pre-build phase"
build:
commands:
- echo "Entered build phase"
- mvn package
- ls
- (cd target && ls)
- (cd target/ROOT && ls)
post_build:
commands:
- echo "Entered the post-build phase"
artifacts:
files:
- '**/*'
请按如下方式更正工件缩进:
version: 0.2
phases:
pre_build:
commands:
- echo "Entered the pre-build phase"
build:
commands:
- echo "Entered build phase"
- mvn package
- ls
- (cd target && ls)
- (cd target/ROOT && ls)
post_build:
commands:
- echo "Entered the post-build phase"
artifacts:
files:
- '**/*'
Codebuild 成功完成但 CodeDeploy 失败。检查错误消息状态 "The action failed because either the artifact or the Amazon S3 bucket could not be found." 检查 codepipeline 存储桶后,我在那里看到了输入工件,但没有看到输出工件。这是我用于 buildspec.yml 的代码:
version: 0.2
phases:
pre_build:
commands:
- echo "Entered the pre-build phase"
build:
commands:
- echo "Entered build phase"
- mvn package
- ls
- (cd target && ls)
- (cd target/ROOT && ls)
post_build:
commands:
- echo "Entered the post-build phase"
artifacts:
files:
- '**/*'
请按如下方式更正工件缩进:
version: 0.2
phases:
pre_build:
commands:
- echo "Entered the pre-build phase"
build:
commands:
- echo "Entered build phase"
- mvn package
- ls
- (cd target && ls)
- (cd target/ROOT && ls)
post_build:
commands:
- echo "Entered the post-build phase"
artifacts:
files:
- '**/*'