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
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?