Skip to content
This repository has been archived by the owner on May 15, 2018. It is now read-only.

Copy artifacts sometimes fails to copy Mercial lock file #244

Closed
davehunt opened this issue Jun 18, 2013 · 4 comments
Closed

Copy artifacts sometimes fails to copy Mercial lock file #244

davehunt opened this issue Jun 18, 2013 · 4 comments
Labels

Comments

@davehunt
Copy link
Member

Occaisionally the copy artifacts fails to copy the Mercurial repository due to the lock file not being present.

Copied 1,663 artifacts from "get_mozmill-environments » windows,master" build number 5
ERROR: Failed to copy artifacts from get_mozmill-tests with filter: **
hudson.util.IOException2: Failed to copy /home/mozauto/mozmill-ci/jenkins-master/jobs/get_mozmill-tests/workspace/mozmill-tests/.hg/store/lock to c:\jenkins\workspace\mozilla-aurora_endurance\mozmill-tests/.hg/store/lock
    at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:90)
    at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:63)
    at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:231)
    at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:203)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
    at hudson.model.Build$RunnerImpl.build(Build.java:178)
    at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
    at hudson.model.Run.run(Run.java:1410)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)
Caused by: java.io.FileNotFoundException: /home/mozauto/mozmill-ci/jenkins-master/jobs/get_mozmill-tests/workspace/mozmill-tests/.hg/store/lock (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at hudson.FilePath$31.invoke(FilePath.java:1519)
    at hudson.FilePath$31.invoke(FilePath.java:1514)
    at hudson.FilePath.act(FilePath.java:788)
    at hudson.FilePath.act(FilePath.java:770)
    at hudson.FilePath.copyTo(FilePath.java:1514)
    at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:74)
    ... 12 more
Build step 'Copy artifacts from another project' marked build as failure
@davehunt
Copy link
Member Author

I suspect the file is removed between listing the files and copying them. We should see if there's a way to exclude lock files when copying artifacts.

@whimboo
Copy link
Contributor

whimboo commented Aug 21, 2013

This could happen with any file of the get_mozmill-tests or get_mozmill-automation job. I think the problem here is that we tell copy artifact to take the last finished build from the workspace. It might help if we change that to the last successful build. Keep in mind that we do not clear the workspace for those jobs.

For the get_mozmill-tests job we might haven't to do a change as of now, given my pull #260, where I change it from copy artifact to the Clone Workspace plugin.

@whimboo
Copy link
Contributor

whimboo commented Aug 21, 2013

Oh, fyi we are seeing this more often now given that the get_mozmill-tests job gets run each 5 minutes now.

@whimboo
Copy link
Contributor

whimboo commented Sep 2, 2013

This should have been fixed now with the upgrade of Jenkins in #260.

@whimboo whimboo closed this as completed Sep 2, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants