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
Can you please guide me what am I missing or doing wrong here?
Thanks,
Sneha
--
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/80077892-3c40-4d2d-b59f-fdaba2c57d0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.