-
Bug
-
Resolution: Fixed
-
Minor
I tried sample code at the top of this page: https://wiki.jenkins-ci.org/display/JENKINS/Unit+Test
{{
@Rule public JenkinsRule j = new JenkinsRule();
@Test public void first() throws Exception
it failed with exception when it could not create a folder inside "./target" because "./target" does not exist in my project folder.
java.lang.Exception: Failed to initialize exploded war
at org.jvnet.hudson.test.WarExploder.getExplodedDir(WarExploder.java:49) at org.jvnet.hudson.test.JenkinsRule.createWebServer(JenkinsRule.java:578) at
Caused by: java.io.FileNotFoundException: C:\projects\jenkins-publisher-plugin\.\target\jenkins-for-test.exploding (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
at org.jvnet.hudson.test.WarExploder.explode(WarExploder.java:99)
at org.jvnet.hudson.test.WarExploder.<clinit>(WarExploder.java:58)
- duplicates
-
JENKINS-26331 WarExploder assumes build system uses target directory
- Resolved