Skip to content

Intermittent Jenkins build failure: vowelsound-artifacts files missing #363

Description

@magent-cryptograss

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

  1. Stale workspace: Jenkins incremental checkout not properly updating files
  2. Race condition: Parallel build processes competing for file access
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions