Closed kareldonk closed 2 years ago
This could be because CodeBuild copies files from CodeCommit instead of doing a clone, and the git information is not available in the copied folder.
I had to update CodePipeline Source action to do a full clone:
The build succeeds now, but all files get the date of the last commit. So it doesn't work correctly yet.
It works now, I had to configure CodeBuild on AWS to clone the full depth:
Describe the bug When using
git Last Modified
as the date in a markdown file, the build fails with the following on AWS CodeBuild with nodeJS 14:When I build locally on my dev machine the build does succeed. Just not on AWS CodeBuild.
Expected behavior Expect build to succeed.
Repro This was the contents of the markdown file:
Environment:
AWS Codebuild with nodeJS 14.
Additional context Add any other context about the problem here.