Summary
Jenkins production builds intermittently fail (~1 in 10 builds) with ENOENT errors when trying to copy vowelsound-artifacts PNG files:
Failed to copy /var/jenkins_home/workspace/arthel-production-build/src/images/vowelsound-artifacts/14.png
to /var/jenkins_home/workspace/arthel-production-build/output/_prebuild_output/assets/images/vowelsound-artifacts/14.png:
ENOENT: no such file or directory
Details
- Files exist in git and are tracked (commit
9402896)
- Files exist on production branch
- Build succeeds most of the time
- Failure is intermittent, suggesting a race condition or stale workspace state
Possible causes
- Stale workspace: Jenkins incremental checkout not properly updating files
- Race condition: Parallel build processes competing for file access
- Filesystem caching: Some layer not flushing writes before copy operation
Workaround
When it happens, cleaning the workspace resolves it:
rm -rf /var/jenkins_home/workspace/arthel-production-build/src/images
Potential fixes
- Add
cleanWs() step before checkout in Jenkinsfile
- Switch to fresh checkout strategy
- Add retry logic around file copy operations
Issue created by magent at block ~24,595,621
Summary
Jenkins production builds intermittently fail (~1 in 10 builds) with ENOENT errors when trying to copy vowelsound-artifacts PNG files:
Details
9402896)Possible causes
Workaround
When it happens, cleaning the workspace resolves it:
Potential fixes
cleanWs()step before checkout in JenkinsfileIssue created by magent at block ~24,595,621