diff --git a/src/test/java/plugins/JavadocPluginTest.java b/src/test/java/plugins/JavadocPluginTest.java index eb311c12f..9cf5b5d40 100644 --- a/src/test/java/plugins/JavadocPluginTest.java +++ b/src/test/java/plugins/JavadocPluginTest.java @@ -71,7 +71,7 @@ private void setup(Job job) { m.targets.set("javadoc:javadoc -f my-app/pom.xml"); JavadocPublisher jd = job.addPublisher(JavadocPublisher.class); - jd.javadocDir.set("my-app/target/site/apidocs/"); + jd.javadocDir.set("my-app/target/site/reports/apidocs/"); job.save(); } diff --git a/src/test/java/plugins/PipelineTest.java b/src/test/java/plugins/PipelineTest.java index 383fdc6dd..d1abe48e2 100644 --- a/src/test/java/plugins/PipelineTest.java +++ b/src/test/java/plugins/PipelineTest.java @@ -75,7 +75,7 @@ public String scriptForPipeline() { " junit 'target/surefire-reports/TEST-io.jenkins.tools.MainTest.xml'\n" + " \n" + " sh \"mvn javadoc:javadoc -f pom.xml\"\n" + - " step([$class: 'JavadocArchiver', javadocDir: 'target/site/apidocs', keepAll: false])\n" + + " step([$class: 'JavadocArchiver', javadocDir: 'target/site/reports/apidocs', keepAll: false])\n" + " }" + "}"; } else { @@ -90,7 +90,7 @@ public String scriptForPipeline() { " junit 'target/surefire-reports/TEST-io.jenkins.tools.MainTest.xml'\n" + " \n" + " bat \"mvn javadoc:javadoc -f pom.xml\"\n" + - " step([$class: 'JavadocArchiver', javadocDir: 'target/site/apidocs', keepAll: false])\n" + + " step([$class: 'JavadocArchiver', javadocDir: 'target/site/reports/apidocs', keepAll: false])\n" + " }" + "}"; }