gpt4 book ai didi

angular - AWS CodePipeline,构建失败并出现错误

转载 作者:太空狗 更新时间:2023-10-29 17:42:08 26 4
gpt4 key购买 nike

我正在尝试构建 Angular7 项目并将其部署到 S3,但出现以下错误。我该如何解决?

[Container] 2019/05/21 04:08:49 Waiting for agent ping 
[Container] 2019/05/21 04:08:51 Waiting for DOWNLOAD_SOURCE
[Container] 2019/05/21 04:08:56 Phase is DOWNLOAD_SOURCE
[Container] 2019/05/21 04:08:56 CODEBUILD_SRC_DIR=/codebuild/output/src345798432/src/git-codecommit.us-east-1.amazonaws.com/v1/repos/CodeCommit-May20
[Container] 2019/05/21 04:08:56 YAML location is /codebuild/readonly/buildspec.yml
[Container] 2019/05/21 04:08:56 Processing environment variables
[Container] 2019/05/21 04:08:56 Moving to directory /codebuild/output/src345798432/src/git-codecommit.us-east-1.amazonaws.com/v1/repos/CodeCommit-May20
[Container] 2019/05/21 04:08:56 Phase complete: DOWNLOAD_SOURCE State: FAILED
[Container] 2019/05/21 04:08:56 Phase context status code: YAML_FILE_ERROR Message: This build image requires selecting at least one runtime version.

最佳答案

If you use the aws/codebuild/standard:2.0 CodeBuild managed image, you must specify a runtime version in the runtime-versions section of the buildspec file.

https://docs.aws.amazon.com/codebuild/latest/userguide/troubleshooting.html#troubleshooting-build-must-specify-runtime

这是指定runtime-versions 的方式: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#runtime-versions-buildspec-file

关于angular - AWS CodePipeline,构建失败并出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56231153/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com