Failed while running InjectedTest, caused by secret.key

14 views
Skip to first unread message

sneha shejwal

unread,
Nov 22, 2016, 1:42:11 PM11/22/16
to Delivery Pipeline Plugin
Hi All,

I am modifying existing Jenkins plugin as per my specific requirement.

I got the plugin code (zip file) from github. When I try to run commands "mvn test", "mvn package" or "mvn clean package" (from the folder where I have unzipped the plugin code), I am getting below errors:

[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ delivery-pipeline-plugin ---
[WARNING] useSystemClassloader setting has no effect when not forking
[INFO] Surefire report directory: C:\Users\sshejwal\Downloads\delivery-pipeline-plugin-master\target\surefire-reports
Running InjectedTest
Tests run: 21, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 45.788 sec <<< FAILURE! - in InjectedTest
org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest)  Time elapsed: 0.002 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)
        at org.jvnet.hudson.test.junit.GroupedTest.run(GroupedTest.java:53)
....
....
Caused by: java.nio.file.FileSystemException: C:\Users\sshejwal\AppData\Local\Temp\hudson7679380230230411283test\secret.key: The process cannot access the file because it is being used by another process.


I even tried to cover the all maven life-cycle phases (https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html):
validate - passed
compile - passed
test - failed with above same errors
package - failed

Also "mvn install" command fails with above errors.

Can you please guide me what am I missing or doing wrong here?

Thanks,
Sneha
Reply all
Reply to author
Forward
0 new messages