Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CodePipeline, build failed and getting error

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. 
like image 215
user244394 Avatar asked May 21 '19 04:05

user244394


People also ask

How do I restart AWS CodePipeline?

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.

Can you skip build action while creating pipeline using AWS CodePipeline?

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.

What version of AWS CLI does CodeBuild use?

codebuild — AWS CLI 1.25.

What is disable transition in CodePipeline?

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.


1 Answers

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.

like image 113
Rafael Marques Avatar answered Sep 30 '22 19:09

Rafael Marques