I am trying build and Angular7 project and deploy to S3 but am getting the following error. How can I resolve it?
[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.
Sign in to the AWS Management Console and open the CodePipeline console at http://console.aws.amazon.com/codesuite/codepipeline/home . The names of all pipelines associated with your AWS account are displayed. In Name, choose the name of the pipeline. Locate the stage with the failed action, and then choose Retry.
Choose Skip build stage if you plan to create a deployment stage. From Build provider, choose a custom action provider of build services, and provide the configuration details for that provider. For an example of how to add Jenkins as a build provider, see Tutorial: Create a four-stage pipeline.
codebuild — AWS CLI 1.25.
Transitions are links between pipeline stages that can be disabled or enabled. They are enabled by default. When you re-enable a disabled transition, the latest revision runs through the remaining stages of the pipeline unless more than 30 days have passed.
In my case, I had the same error message because I had the buildspec.yml
file in a sub-folder, and not in the project root.
If that is the case, you need to manually configure the buildspec.yml
file location in the codebuild project console.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With