-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codebuild not able to find buildspec.yml file using fromSourceFilename method #23324
Comments
@peterwoodworth any update on this? |
From the CloudFormation docs:
Are you sure that your codebuild project has this file defined where you're expecting it to be? |
You can check my directory structure mentioned in issue, looking by that I think so its is there where it should be. After reading you comment and the link to docs I have few questions ?
I replaced my current code with this and it worked. I got a similar response on StackOverflow too https://stackoverflow.com/a/74784379/13126651 |
This is the directory of whatever your source is.
I was asking you to make sure that this is the case in your codebuild source directory, not your local directory. It sounds like this was the case since you got the workaround to work using your local file |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
seem this is still an issue as I am facing similar problem |
Describe the bug
I am trying to use YAML commands from buildspec.yml file using
codebuild.BuildSpec.fromSourceFilename
but codebuild is unable to find this file,, when I trying to run build job.Expected Behavior
It should run my commands present in the yml file.
Current Behavior
It shows error In the build logs Phase context status code:
YAML_FILE_ERROR Message: stat /codebuild/output/srcxxxxxxx3/src/buildspec/plan-buildspec.yml: no such file or directory
Reproduction Steps
here is my cdk code
pipeline code
My directory structure
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.44.0 (build bf32cb1)
Framework Version
No response
Node.js Version
16.17.0
OS
macOS
Language
Typescript
Language Version
4.6.2
Other information
No response
The text was updated successfully, but these errors were encountered: