See https://builds.apache.org/job/maven-box/job/maven-pmd-plugin/job/master/25/

Changes:

* deploy SNAPSHOT only if  (env.BRANCH_NAME == 'master' && jdk == '8' &&
* deploy only os == linux
* deploy only with 3.6.x
* no need to execute tests twice..
* this one can deploy as well
* Update asfMavenTlpStdBuild.groovy
* no need to filter on maven version only one is used here

All tests passed

Build log:
[...truncated 12113 lines...]
    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:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:356)
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:260)
    at org.apache.maven.plugins.invoker.VerifyMojo.execute (VerifyMojo.java:137)
    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:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:356)
[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
[withMaven] junitPublisher - Archive test results for Maven artifact 
org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT 
generated by maven-surefire-plugin:test (default-test): 
linux-jdk7-m3.6.x_build/target/surefire-reports/*.xml
Recording test results
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[INFO] run post-build script verify.groovy
[INFO]           MPMD-277-multi-module-check/pom.xml .............. SUCCESS 
(9.7 s)
[INFO] Building: MPMD-259-analysis-cache-auxclasspath/pom.xml
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact 
org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT in 
source directory linux-jdk7-m3.6.x_build/src/main/java
[TASKS] Scanning folder 
'/home/jenkins/jenkins-slave/workspace/aven-box_maven-pmd-plugin_master@2' for 
files matching the pattern 'linux-jdk7-m3.6.x_build/src/main/java/**/*' - 
excludes: null
[TASKS] Found 14 files to scan for tasks
[TASKS] Found 6 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #23
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT(version:
 3.12.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test
  integration-test}: linux-jdk7-m3.6.x_build/target/invoker-reports/*.xml
[withMaven] junitPublisher - Archive test results for Maven artifact 
org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT 
generated by maven-surefire-plugin:test (default-test): 
linux-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.12.1-SNAPSHOT in 
source directory linux-jdk11-m3.6.x_build/src/main/java
[TASKS] Scanning folder 
'/home/jenkins/jenkins-slave/workspace/aven-box_maven-pmd-plugin_master@2' for 
files matching the pattern 'linux-jdk11-m3.6.x_build/src/main/java/**/*' - 
excludes: null
[TASKS] Found 14 files to scan for tasks
[TASKS] Found 6 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #23
[INFO] run post-build script verify.groovy
[INFO]           MPMD-266-typeresolution-aggregated/pom.xml ....... SUCCESS 
(14.2 s)
[INFO] Building: multi-module/pom.xml
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT(version:
 3.12.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test
  integration-test}: linux-jdk11-m3.6.x_build/target/invoker-reports/*.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-259-analysis-cache-auxclasspath/pom.xml ..... SUCCESS 
(7.2 s)
[INFO] Building: MPMD-172/pom.xml
[INFO] run post-build script verify.bsh
[INFO]           multi-module/pom.xml ............................. SUCCESS 
(7.7 s)
[INFO] Building: MPMD-219-pmd-processing-error/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-172/pom.xml ................................. SUCCESS 
(6.1 s)
[INFO] Building: mpmd-138/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-219-pmd-processing-error/pom.xml ............ SUCCESS 
(4.3 s)
[INFO] Building: MPMD-128-xref-link/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-128-xref-link/pom.xml ....................... SUCCESS 
(6.2 s)
[INFO] Building: MPMD-244-logging/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           mpmd-138/pom.xml ................................. SUCCESS 
(9.9 s)
[INFO] Building: MPMD-128-xref-link/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-244-logging/pom.xml ......................... SUCCESS 
(5.6 s)
[INFO] Building: mpmd-168-empty-report/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-128-xref-link/pom.xml ....................... SUCCESS 
(6.6 s)
[INFO] Building: mpmd-142/pom.xml
[withMaven] Publishers: Generated Artifacts Publisher: 1148 ms, Junit 
Publisher: 2081 ms, Open Task Scanner Publisher: 674 ms, Dependencies 
Fingerprint Publisher: 1 ms, Invoker Publisher: 29445 ms, Pipeline Graph 
Publisher: 1 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] }
[withMaven] Publishers: Generated Artifacts Publisher: 312 ms, Junit Publisher: 
2084 ms, Open Task Scanner Publisher: 682 ms, Dependencies Fingerprint 
Publisher: 1 ms, Invoker Publisher: 29968 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...
[INFO]           mpmd-142/pom.xml ................................. SUCCESS 
(8.1 s)
[INFO] Building: mpmd-80-included/pom.xml
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ws
[Pipeline] }
[Pipeline] // node
[Pipeline] }
Failed in branch linux-jdk11-m3.6.x_build
[INFO] run post-build script verify.groovy
[INFO]           mpmd-168-empty-report/pom.xml .................... SUCCESS 
(10.5 s)
[INFO] Building: mpmd-168/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           mpmd-80-included/pom.xml ......................... SUCCESS 
(6.8 s)
[INFO] Building: MPMD-206-sourceDirectories-js/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-206-sourceDirectories-js/pom.xml ............ SUCCESS 
(4.6 s)
[INFO] Building: MPMD-181-no-benchmark/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           mpmd-168/pom.xml ................................. SUCCESS 
(10.3 s)
[INFO] Building: mpmd-138/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-181-no-benchmark/pom.xml .................... SUCCESS 
(6.3 s)
[INFO] Building: mpmd-168-empty-report/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           mpmd-138/pom.xml ................................. SUCCESS 
(9.9 s)
[INFO] Building: MPMD-280-JDK12/pom.xml
[INFO]           MPMD-280-JDK12/pom.xml ........................... SKIPPED due 
to JRE version
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ 
maven-pmd-plugin ---
[INFO] 
[INFO] --- maven-invoker-plugin:3.1.0:verify (integration-test) @ 
maven-pmd-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 29, Failed: 0, Errors: 0, Skipped: 2
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:58 min
[INFO] Finished at: 2019-07-02T21:34:34Z
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated 
/home/jenkins/jenkins-slave/workspace/aven-box_maven-pmd-plugin_master@2@tmp/withMavenb955986e/maven-spy-20190702-213035-5196175027329558021459.log
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] artifactsPublisher - Archive artifact 
linux-jdk13-m3.6.x_build/pom.xml under 
org/apache/maven/plugins/maven-pmd-plugin/3.12.1-SNAPSHOT/maven-pmd-plugin-3.12.1-SNAPSHOT.pom
[withMaven] artifactsPublisher - Archive artifact 
linux-jdk13-m3.6.x_build/target/maven-pmd-plugin-3.12.1-SNAPSHOT.jar under 
org/apache/maven/plugins/maven-pmd-plugin/3.12.1-SNAPSHOT/maven-pmd-plugin-3.12.1-SNAPSHOT.jar
[withMaven] junitPublisher - Archive test results for Maven artifact 
org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT 
generated by maven-surefire-plugin:test (default-test): 
linux-jdk13-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.12.1-SNAPSHOT in 
source directory linux-jdk13-m3.6.x_build/src/main/java
[TASKS] Scanning folder 
'/home/jenkins/jenkins-slave/workspace/aven-box_maven-pmd-plugin_master@2' for 
files matching the pattern 'linux-jdk13-m3.6.x_build/src/main/java/**/*' - 
excludes: null
[TASKS] Found 14 files to scan for tasks
[TASKS] Found 6 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #23
[INFO] run post-build script verify.groovy
[INFO]           mpmd-168-empty-report/pom.xml .................... SUCCESS 
(10.7 s)
[INFO] Building: MPMD-244-logging/pom.xml
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT(version:
 3.12.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test
  integration-test}: linux-jdk13-m3.6.x_build/target/invoker-reports/*.xml
[INFO] run post-build script verify.groovy
[INFO]           MPMD-244-logging/pom.xml ......................... SUCCESS 
(5.6 s)
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ 
maven-pmd-plugin ---
[INFO] 
[INFO] --- maven-invoker-plugin:3.1.0:verify (integration-test) @ 
maven-pmd-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 30, Failed: 0, Errors: 0, Skipped: 1
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:26 min
[INFO] Finished at: 2019-07-02T21:34:46Z
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated 
/home/jenkins/jenkins-slave/workspace/aven-box_maven-pmd-plugin_master@2@tmp/withMavena1bed6a6/maven-spy-20190702-213018-8204180254260604542706.log
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] artifactsPublisher - Archive artifact 
linux-jdk12-m3.6.x_build/pom.xml under 
org/apache/maven/plugins/maven-pmd-plugin/3.12.1-SNAPSHOT/maven-pmd-plugin-3.12.1-SNAPSHOT.pom
[withMaven] artifactsPublisher - Archive artifact 
linux-jdk12-m3.6.x_build/target/maven-pmd-plugin-3.12.1-SNAPSHOT.jar under 
org/apache/maven/plugins/maven-pmd-plugin/3.12.1-SNAPSHOT/maven-pmd-plugin-3.12.1-SNAPSHOT.jar
[withMaven] junitPublisher - Archive test results for Maven artifact 
org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT 
generated by maven-surefire-plugin:test (default-test): 
linux-jdk12-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.12.1-SNAPSHOT in 
source directory linux-jdk12-m3.6.x_build/src/main/java
[TASKS] Scanning folder 
'/home/jenkins/jenkins-slave/workspace/aven-box_maven-pmd-plugin_master@2' for 
files matching the pattern 'linux-jdk12-m3.6.x_build/src/main/java/**/*' - 
excludes: null
[TASKS] Found 14 files to scan for tasks
[TASKS] Found 6 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #23
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.12.1-SNAPSHOT(version:
 3.12.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test
  integration-test}: linux-jdk12-m3.6.x_build/target/invoker-reports/*.xml
[withMaven] Publishers: Generated Artifacts Publisher: 1133 ms, Junit 
Publisher: 2072 ms, Open Task Scanner Publisher: 721 ms, Dependencies 
Fingerprint Publisher: 1 ms, Invoker Publisher: 28828 ms, Pipeline Graph 
Publisher: 1 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] }
[withMaven] Publishers: Generated Artifacts Publisher: 1134 ms, Junit 
Publisher: 2077 ms, Open Task Scanner Publisher: 677 ms, Dependencies 
Fingerprint Publisher: 1 ms, Invoker Publisher: 28308 ms, Pipeline Graph 
Publisher: 19 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] }
[Pipeline] // parallel
[Pipeline] stage
[Pipeline] { (Notifications)
[Pipeline] echo
Build result: FAILURE
[Pipeline] jiraIssueSelector
[Pipeline] emailext

Reply via email to