See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-pmd-plugin/job/mpmd-304/3/
Changes: * pwd() doesn't seem to work on slaves? * Disable debug build log for integration tests * create a custom toolchains.xml for the integration test All tests passed Build log: [...truncated 29324 lines...] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-invoker-plugin:3.2.1:verify' with basic configurator --> [DEBUG] (f) ignoreFailures = false [DEBUG] (f) reportsDirectory = f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@3\windows-jdk7-m3.6.x_build\target\invoker-reports [DEBUG] (f) skipInvocation = false [DEBUG] (f) suppressSummaries = false [DEBUG] -- end configuration -- [INFO] ------------------------------------------------- [INFO] Build Summary: [INFO] Passed: 30, Failed: 0, Errors: 0, Skipped: 7 [INFO] ------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 07:00 min [INFO] Finished at: 2020-10-03T08:15:39-07:00 [INFO] ------------------------------------------------------------------------ [INFO] [jenkins-event-spy] Generated F:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@3@tmp\withMavend111ca49\maven-spy-20201003-080838-77806885223011954540.log Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@3@tmp\withMavend111ca49\pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@3@tmp\withMavend111ca49" [Pipeline] } [Pipeline] // dir [Pipeline] } [withMaven] artifactsPublisher - Archive artifact windows-jdk7-m3.6.x_build\pom.xml under org\apache\maven\plugins\maven-pmd-plugin\3.14.0-SNAPSHOT\maven-pmd-plugin-3.14.0-SNAPSHOT.pom [withMaven] artifactsPublisher - Archive artifact windows-jdk7-m3.6.x_build\target\maven-pmd-plugin-3.14.0-SNAPSHOT.jar under org\apache\maven\plugins\maven-pmd-plugin\3.14.0-SNAPSHOT\maven-pmd-plugin-3.14.0-SNAPSHOT.jar [withMaven] junitPublisher - Archive test results for Maven artifact org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT generated by maven-surefire-plugin:test (default-test): windows-jdk7-m3.6.x_build\target\surefire-reports\*.xml Recording test results [withMaven] openTasksPublisher - Scan Tasks for Maven artifact org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT in source directory windows-jdk7-m3.6.x_build\src\main\java [TASKS] Scanning folder 'f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@3' for files matching the pattern 'windows-jdk7-m3.6.x_build\src\main\java\**\*' - excludes: null [TASKS] Found 21 files to scan for tasks [TASKS] Found 8 open tasks. Skipping warnings blame since pipelines do not have an SCM link.%n [TASKS] Computing warning deltas based on reference build #2 [withMaven] invokerPublisher - Archive invoker results for Maven artifact MavenArtifact{org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT(version: 3.14.0-SNAPSHOT, snapshot:false) } generated by PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.2.1@integration-test integration-test}: windows-jdk7-m3.6.x_build\target\invoker-reports\*.xml [INFO] run post-build script verify.groovy [INFO] MPMD-244-logging\pom.xml ......................... SUCCESS (7.6 s) [INFO] Building: MPMD-253-xref-link-multi-module\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-253-xref-link-multi-module\pom.xml .......... SUCCESS (7.9 s) [INFO] Building: MPMD-258-multiple-executions\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-258-multiple-executions\pom.xml ............. SUCCESS (8.5 s) [INFO] Building: MPMD-259-analysis-cache-auxclasspath\pom.xml [withMaven] Publishers: Generated Artifacts Publisher: 3617 ms, Junit Publisher: 520 ms, Open Task Scanner Publisher: 198 ms, Invoker Publisher: 19764 ms [Pipeline] // withMaven [Pipeline] cleanWs [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [INFO] run post-build script verify.groovy [INFO] MPMD-259-analysis-cache-auxclasspath\pom.xml ..... SUCCESS (8.6 s) [INFO] Building: MPMD-266-typeresolution-aggregated\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-266-typeresolution-aggregated\pom.xml ....... SUCCESS (17.2 s) [INFO] Building: MPMD-268-deprecated-rules\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-268-deprecated-rules\pom.xml ................ SUCCESS (6.0 s) [INFO] Building: MPMD-270-JDK11\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-270-JDK11\pom.xml ........................... SUCCESS (7.2 s) [INFO] Building: MPMD-277-multi-module-check\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-277-multi-module-check\pom.xml .............. SUCCESS (11.8 s) [INFO] Building: MPMD-280-JDK12\pom.xml [INFO] MPMD-280-JDK12\pom.xml ........................... SKIPPED due to JRE version [INFO] Building: MPMD-289-format-html-check\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-289-format-html-check\pom.xml ............... SUCCESS (6.0 s) [INFO] Building: MPMD-295-JDK13\pom.xml [INFO] MPMD-295-JDK13\pom.xml ........................... SKIPPED due to JRE version [INFO] Building: MPMD-296-rulesetsTargetDirectory\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-296-rulesetsTargetDirectory\pom.xml ......... SUCCESS (20.1 s) [INFO] Building: MPMD-302-JDK14\pom.xml [INFO] MPMD-302-JDK14\pom.xml ........................... SKIPPED due to JRE version [INFO] Building: MPMD-302-JDK15\pom.xml [INFO] MPMD-302-JDK15\pom.xml ........................... SKIPPED due to JRE version [INFO] Building: MPMD-304-toolchain-support\pom.xml [INFO] run pre-build script setup.groovy [INFO] run post-build script verify.groovy [INFO] The post-build script did not succeed. assert buildLog.text.contains( '[INFO] Toolchain in maven-pmd-plugin: JDK[' ) | | | | | false | Running pre-build script: f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\setup.groovy | Replaced '@jdk.home@' with 'f:\jenkins\tools\java\latest11' in 'f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\toolchains.xml'. | Finished pre-build script: f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\setup.groovy | Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2@tmp\withMaven62d067c8\pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2@tmp\withMaven62d067c8" | [INFO] [jenkins-event-spy] Jenkins Maven Event Spy is disabled | [INFO] Scanning for projects... | [INFO] | [INFO] -----< org.apache.maven.plugins.pmd.it:MPMD-304-toolchain-support >----- | [INFO] Building MPMD-304-toolchain-support 1.0-SNAPSHOT | [INFO] --------------------------------[ jar ]--------------------------------- | [INFO] Downloading from local.central: file:///f:/jenkins/jenkins-slave/712657a4/workspace/.maven_repositories/1/org/apache/maven/plugins/maven-toolchains-plugin/3.0.0/maven-toolchains-plugin-3.0.0.pom | [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-toolchains-plugin/3.0.0/maven-toolchains-plugin-3.0.0.pom | [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-toolchains-plugin/3.0.0/maven-toolchains-plugin-3.0.0.pom (3.6 kB at 9.5 kB/s) | [INFO] Downloading from local.central: file:///f:/jenkins/jenkins-slave/712657a4/workspace/.maven_repositories/1/org/apache/maven/plugins/maven-toolchains-plugin/3.0.0/maven-toolchains-plugin-3.0.0.jar | [INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-toolchains-plugin/3.0.0/maven-toolchains-plugin-3.0.0.jar | [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-toolchains-plugin/3.0.0/maven-toolchains-plugin-3.0.0.jar (24 kB at 380 kB/s) | [INFO] | [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MPMD-304-toolchain-support --- | [INFO] | [INFO] --- maven-toolchains-plugin:3.0.0:toolchain (default) @ MPMD-304-toolchain-support --- | [INFO] Required toolchain: jdk [ vendor='oracle' version='11' ] | [INFO] ------------------------------------------------------------------------ | [INFO] BUILD FAILURE | [INFO] ------------------------------------------------------------------------ | [INFO] Total time: 1.948 s | [INFO] Finished at: 2020-10-03T08:17:23-07:00 | [INFO] ------------------------------------------------------------------------ | [ERROR] Failed to execute goal org.apache.maven.plugins:maven-toolchains-plugin:3.0.0:toolchain (default) on project MPMD-304-toolchain-support: Misconfigured toolchains. Non-existing JDK home configuration at f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\jenkinstoolsjavalatest11 -> [Help 1] | [ERROR] | [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. | [ERROR] Re-run Maven using the -X switch to enable full debug logging. | [ERROR] | [ERROR] For more information about the errors and possible solutions, please read the following articles: | [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException | Running post-build script: f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\verify.groovy f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2\windows-jdk11-m3.6.x_build\target\it\MPMD-304-toolchain-support\build.log [INFO] MPMD-304-toolchain-support\pom.xml ............... FAILED (4.2 s) [INFO] Building: mpmd-80-included\pom.xml [INFO] run post-build script verify.groovy [INFO] mpmd-80-included\pom.xml ......................... SUCCESS (6.9 s) [INFO] Building: mpmd-80-not-included\pom.xml [INFO] run post-build script verify.groovy [INFO] mpmd-80-not-included\pom.xml ..................... SUCCESS (7.9 s) [INFO] Building: MPMD-89-232-typeresolution\pom.xml [INFO] run post-build script verify.groovy [INFO] MPMD-89-232-typeresolution\pom.xml ............... SUCCESS (6.1 s) [INFO] Building: multi-module\pom.xml [INFO] run post-build script verify.bsh [INFO] multi-module\pom.xml ............................. SUCCESS (11.4 s) [INFO] [INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ maven-pmd-plugin --- [INFO] [INFO] --- maven-invoker-plugin:3.2.1:verify (integration-test) @ maven-pmd-plugin --- [INFO] ------------------------------------------------- [INFO] Build Summary: [INFO] Passed: 32, Failed: 1, Errors: 0, Skipped: 4 [INFO] ------------------------------------------------- [ERROR] The following builds failed: [ERROR] * MPMD-304-toolchain-support\pom.xml [INFO] ------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 07:28 min [INFO] Finished at: 2020-10-03T08:17:59-07:00 [INFO] ------------------------------------------------------------------------ [INFO] [jenkins-event-spy] Generated F:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2@tmp\withMaven62d067c8\maven-spy-20201003-081029-8683256966351352249899.log [ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:3.2.1:verify (integration-test) on project maven-pmd-plugin: 1 build failed. See console output above for details. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:3.2.1:verify (integration-test) on project maven-pmd-plugin: 1 build failed. See console output above for details. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.MojoFailureException: 1 build failed. See console output above for details. at org.apache.maven.plugins.invoker.InvokerSession.handleFailures (InvokerSession.java:259) at org.apache.maven.plugins.invoker.VerifyMojo.execute (VerifyMojo.java:140) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [Pipeline] } [Pipeline] // dir [Pipeline] } [withMaven] junitPublisher - Archive test results for Maven artifact org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT generated by maven-surefire-plugin:test (default-test): windows-jdk11-m3.6.x_build\target\surefire-reports\*.xml Recording test results [withMaven] openTasksPublisher - Scan Tasks for Maven artifact org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT in source directory windows-jdk11-m3.6.x_build\src\main\java [TASKS] Scanning folder 'f:\jenkins\jenkins-slave\712657a4\workspace\en-box_maven-pmd-plugin_mpmd-304@2' for files matching the pattern 'windows-jdk11-m3.6.x_build\src\main\java\**\*' - excludes: null [TASKS] Found 21 files to scan for tasks [TASKS] Found 8 open tasks. Skipping warnings blame since pipelines do not have an SCM link.%n [TASKS] Computing warning deltas based on reference build #2 [withMaven] invokerPublisher - Archive invoker results for Maven artifact MavenArtifact{org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.14.0-SNAPSHOT(version: 3.14.0-SNAPSHOT, snapshot:false) } generated by PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.2.1@integration-test integration-test}: windows-jdk11-m3.6.x_build\target\invoker-reports\*.xml [withMaven] Publishers: Generated Artifacts Publisher: 1750 ms, Junit Publisher: 2012 ms, Open Task Scanner Publisher: 1205 ms, Invoker Publisher: 19950 ms [Pipeline] // withMaven [Pipeline] cleanWs [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done [Pipeline] cleanWs [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } Failed in branch windows-jdk11-m3.6.x_build [Pipeline] // parallel [Pipeline] stage [Pipeline] { (Notifications) [Pipeline] echo Build result: FAILURE [Pipeline] jiraIssueSelector [Pipeline] echo The authors of changes [rfscholte, adangel]. [Pipeline] echo Sending email ... [Pipeline] emailext