See https://builds.apache.org/job/maven-box/job/maven-gpg-plugin/job/master/31/
Changes:
* Add support for Maven 3.6.x/3.6.0
* More verbose info about build exceptions
* Verbose info about failure - add bit more
* Revert: no access to currntBuild.rawBuild
No tests ran.
Build log:
[...truncated 2086 lines...]
[INFO] Building: sign-with-passphase-from-maven-settings\pom.xml
[INFO] Skipping because packaging 'maven-plugin' is not pom.
[INFO]
[INFO] --- maven-invoker-plugin:3.1.0:install (integration-test) @
maven-gpg-plugin ---
[INFO] Installing
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\pom.xml
to
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\target\local-repo\org\apache\maven\plugins\maven-gpg-plugin\1.7-SNAPSHOT\maven-gpg-plugin-1.7-SNAPSHOT.pom
[INFO] Installing
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\target\maven-gpg-plugin-1.7-SNAPSHOT.jar
to
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\target\local-repo\org\apache\maven\plugins\maven-gpg-plugin\1.7-SNAPSHOT\maven-gpg-plugin-1.7-SNAPSHOT.jar
[INFO]
[INFO] --- maven-invoker-plugin:3.1.0:integration-test (integration-test) @
maven-gpg-plugin ---
[INFO] Building: alternative-secret-keyring\pom.xml
[INFO] run post-build script verify.bsh
[INFO] sign-with-passphase-from-maven-settings\pom.xml .. FAILED (2.5
s)
[INFO] The post-build script did not succeed. Missing file
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk11-m3.5.x_build\target\local-repo\org\apache\maven\its\gpg\nma\test\1.0\test-1.0.pom
[INFO]
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @
maven-gpg-plugin ---
[INFO] There is 1 error reported by Checkstyle 6.18 with
config/maven_checks.xml ruleset.
[INFO] Ignored 1 error, 0 violation remaining.
[INFO]
[INFO] --- maven-invoker-plugin:3.1.0:verify (integration-test) @
maven-gpg-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 0, Failed: 4, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] * alternative-secret-keyring\pom.xml
[ERROR] * no-main-artifact\pom.xml
[ERROR] * sign-release\pom.xml
[ERROR] * sign-with-passphase-from-maven-settings\pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.628 s
[INFO] Finished at: 2019-01-31T03:47:19Z
[INFO] Final Memory: 37M/130M
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated
F:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2@tmp\withMaven5bb6666a\maven-spy-20190131-034653-63716204448211126803861.log
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-invoker-plugin:3.1.0:verify (integration-test)
on project maven-gpg-plugin: 4 builds 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.1.0:verify (integration-test)
on project maven-gpg-plugin: 4 builds failed. See console output above for
details.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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: 4 builds 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:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] junitPublisher - Archive test results for Maven artifact
org.apache.maven.plugins:maven-gpg-plugin:maven-plugin:1.7-SNAPSHOT generated
by maven-surefire-plugin:test (default-test):
windows-jdk11-m3.5.x_build\target\surefire-reports\*.xml
Recording test results
None of the test reports contained any result
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact
org.apache.maven.plugins:maven-gpg-plugin:maven-plugin:1.7-SNAPSHOT in source
directory windows-jdk11-m3.5.x_build\src\main\java
[TASKS] Scanning folder
'f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2' for
files matching the pattern 'windows-jdk11-m3.5.x_build\src\main\java\**\*' -
excludes: null
[TASKS] Found 8 files to scan for tasks
[TASKS] Found 1 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #23
[withMaven] Publishers: Generated Artifacts Publisher: 179 ms, Junit Publisher:
112 ms, Open Task Scanner Publisher: 296 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.5.x_build
[INFO] run post-build script verify.bsh
[INFO] alternative-secret-keyring\pom.xml ............... FAILED
(14.7 s)
[INFO] The post-build script did not succeed. Missing file
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\target\local-repo\org\apache\maven\its\gpg\ask\test\1.0\test-1.0.pom
[INFO] Building: no-main-artifact\pom.xml
[INFO] run post-build script verify.bsh
[INFO] no-main-artifact\pom.xml ......................... FAILED
(11.1 s)
[INFO] The post-build script did not succeed. Missing file
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\target\local-repo\org\apache\maven\its\gpg\nma\test\1.0\test-1.0.pom
[INFO] Building: sign-release\pom.xml
[INFO] run post-build script verify.bsh
[INFO] sign-release\pom.xml ............................. FAILED
(10.6 s)
[INFO] The post-build script did not succeed. Missing file
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\target\local-repo\org\apache\maven\its\gpg\sr\test\1.0\test-1.0.pom
[INFO] Building: sign-with-passphase-from-maven-settings\pom.xml
[INFO] run post-build script verify.bsh
[INFO] sign-with-passphase-from-maven-settings\pom.xml .. FAILED (7.5
s)
[INFO] The post-build script did not succeed. Missing file
f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2\windows-jdk8-m3.5.x_build\target\local-repo\org\apache\maven\its\gpg\nma\test\1.0\test-1.0.pom
[INFO]
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @
maven-gpg-plugin ---
[INFO] There is 1 error reported by Checkstyle 6.18 with
config/maven_checks.xml ruleset.
[INFO] Ignored 1 error, 0 violation remaining.
[INFO]
[INFO] --- maven-invoker-plugin:3.1.0:verify (integration-test) @
maven-gpg-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 0, Failed: 4, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] * alternative-secret-keyring\pom.xml
[ERROR] * no-main-artifact\pom.xml
[ERROR] * sign-release\pom.xml
[ERROR] * sign-with-passphase-from-maven-settings\pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:09 min
[INFO] Finished at: 2019-01-31T03:48:06Z
[INFO] Final Memory: 44M/643M
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated
F:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2@tmp\withMavend4671b32\maven-spy-20190131-034656-8262512733686382329189.log
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-invoker-plugin:3.1.0:verify (integration-test)
on project maven-gpg-plugin: 4 builds 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.1.0:verify (integration-test)
on project maven-gpg-plugin: 4 builds failed. See console output above for
details.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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: 4 builds 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:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:146)
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:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
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
Picked up JAVA_TOOL_OPTIONS:
-Dmaven.ext.class.path="f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2@tmp\withMavend4671b32\pipeline-maven-spy.jar"
-Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2@tmp\withMavend4671b32"
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] junitPublisher - Archive test results for Maven artifact
org.apache.maven.plugins:maven-gpg-plugin:maven-plugin:1.7-SNAPSHOT generated
by maven-surefire-plugin:test (default-test):
windows-jdk8-m3.5.x_build\target\surefire-reports\*.xml
Recording test results
None of the test reports contained any result
[withMaven] openTasksPublisher - Scan Tasks for Maven artifact
org.apache.maven.plugins:maven-gpg-plugin:maven-plugin:1.7-SNAPSHOT in source
directory windows-jdk8-m3.5.x_build\src\main\java
[TASKS] Scanning folder
'f:\jenkins\jenkins-slave\workspace\aven-box_maven-gpg-plugin_master@2' for
files matching the pattern 'windows-jdk8-m3.5.x_build\src\main\java\**\*' -
excludes: null
[TASKS] Found 8 files to scan for tasks
[TASKS] Found 1 open tasks.
Skipping warnings blame since pipelines do not have an SCM link.%n
[TASKS] Computing warning deltas based on reference build #23
[withMaven] Publishers: Generated Artifacts Publisher: 56 ms, Junit Publisher:
65 ms, Open Task Scanner Publisher: 172 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-jdk8-m3.5.x_build
[Pipeline] // parallel
[Pipeline] stage
[Pipeline] { (Notifications)
[Pipeline] echo
Build result: FAILURE
[Pipeline] jiraIssueSelector
[Pipeline] emailext