I'm experiencing this problem on windows:

org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest)
 Time elapsed: 0.041 sec  <<< ERROR!
java.io.IOException: Failed to clean up temp dirs
        at
org.jvnet.hudson.test.TemporaryDirectoryAllocator.dispose(TemporaryDirectoryAllocator.java:86)
        at
org.jvnet.hudson.test.TestEnvironment.dispose(TestEnvironment.java:81)
        at
org.jvnet.hudson.test.HudsonTestCase.tearDown(HudsonTestCase.java:414)
        at
org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.tearDown(JellyTestSuiteBuilder.java:138)
[..]
Caused by: java.nio.file.FileSystemException:
C:\Users\BELLIN~1\AppData\Local\Temp\hudson5255949504888562847test\secret.key:
Le processus ne peut pas accÚder au fichier car ce fichier est utilisÚ par
un autre processus.

        at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
        at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at
sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)

A similar problem is described on the page
https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test+on+Windows
But no workaround is provided.

The same kind of problem seems to appear often on windows environments (I
can find several references to similar problems while googling)

I'm using Jenkins 1.554.1, but I experience the same problem with 1.559 and
further versions.

Java is 1.8.0_25.

I'm unwilling to exclude the test from my POM. I'm also unwilling to
exclude completely the unit tests on this OS.

Is there anybody who knows how to fix or workaround this issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF-_A8%2Bpp5qk_o6iHnza6qB3%3DGig0ztC4tXjkmRi%2BZ9vcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to