Skip to content

Changes root-directory name of YAML_FILE - path to uppercase automatically, which leads to YAML_FILE_ERROR: no such file or directory #470

Open
@AndreasLuckert

Description

@AndreasLuckert

I run the AWS-CodeBuild locally with the following command in the root-directory of the related project "projectname":

username@hd1pcms0347 MINGW64 ~/Projects/projectname (dev-platform-al)
$ ../aws-codebuild-docker-images/local_builds/codebuild_build.sh -i aws/codebuild/standard:5.0 -a artifacts-output-projectname -s . -b src/build/buildspec.tests.pre-deploy.yml -c /c/Users/username/.aws/config

The output Build Command in the CLI is:

docker run -it -v //var/run/docker.sock:/var/run/docker.sock -e "IMAGE_NAME=aws/codebuild/standard:5.0" -e "ARTIFACTS=//Artifacts-output-projectname" -e "SOURCE=//C/Users/username/Projects/projectname/." -e "BUILDSPEC=//Src/build/buildspec.tests.pre-deploy.yml" -e "AWS_CONFIGURATION=//C/Users/username/.aws" -e "INITIATOR=username" amazon/aws-codebuild-local:latest

Removing agent-resources_build_1 ... done
Removing agent-resources_agent_1 ... done
Removing network agent-resources_default
Removing volume agent-resources_source_volume
Removing volume agent-resources_user_volume
Creating network "agent-resources_default" with the default driver
Creating volume "agent-resources_source_volume" with local driver
Creating volume "agent-resources_user_volume" with local driver
Creating agent-resources_agent_1 ... done
Creating agent-resources_build_1 ... done
Attaching to agent-resources_agent_1, agent-resources_build_1
agent_1  | [Container] 2021/07/05 11:58:43 Waiting for agent ping
agent_1  | [Container] 2021/07/05 11:58:45 Waiting for DOWNLOAD_SOURCE
agent_1  | [Container] 2021/07/05 11:58:46 Phase is DOWNLOAD_SOURCE
agent_1  | [Container] 2021/07/05 11:58:46 CODEBUILD_SRC_DIR=/codebuild/output/src055514407/src
agent_1  | [Container] 2021/07/05 11:58:46 Phase complete: DOWNLOAD_SOURCE State: FAILED
agent_1  | [Container] 2021/07/05 11:58:46 Phase context status code: YAML_FILE_ERROR Message: stat /Src/build/buildspec.tests.pre-deploy.yml: no such file or directory
agent_1  | [Container] 2021/07/05 11:58:46 Runtime error (*clienterr.PhaseContextError: stat /Src/build/buildspec.tests.pre-deploy.yml: no such file or directory)
agent-resources_agent_1 exited with code 0
Aborting on container exit...

Error: /Src/build/buildspec.tests.pre-deploy.yml: no such file or directory

The actual root-directory starts with a lower case like so:
src\build\buildspec.tests.pre-deploy.yml

Now this begs the question why the software would change the first letter from lowercase to uppercase?

Next, what does the following state stand for:
DOWNLOAD_SOURCE State: FAILED

Is it related to the previous ill-renaming of the root-directory /scr/?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CodeBuild-localTag to track issues and PRs for CodeBuild local Docker imageWindows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions