See https://builds.apache.org/job/maven-box/job/maven-archetypes/job/master/40/

Changes:

* More verbose info about build exceptions
* Verbose info about failure - add bit more
* Revert: no access to currntBuild.rawBuild

All tests passed

Build log:
[...truncated 8595 lines...]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-bytecode-version) @ 
maven-archetype-site ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (ban-known-bad-maven-versions) @ 
maven-archetype-site ---
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (rat-check) @ maven-archetype-site ---
[INFO] RAT will not execute since it is configured to be skipped via system 
property 'rat.skip'.
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ maven-archetype-site ---
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ 
maven-archetype-site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 15 resources
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ 
maven-archetype-site ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-archetype-plugin:3.0.1:jar (default-jar) @ 
maven-archetype-site ---
[INFO] Building archetype jar: 
/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master/m/maven-archetype-site/target/maven-archetype-site-1.5-SNAPSHOT
[INFO] 
[INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ 
maven-archetype-site ---
[INFO] Skipping because packaging 'maven-archetype' is not pom.
[INFO] 
[INFO] --- maven-archetype-plugin:3.0.1:integration-test 
(default-integration-test) @ maven-archetype-site ---
[INFO] Processing Archetype IT project: it-basic
[INFO] 
----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: 
maven-archetype-site:1.5-SNAPSHOT
[INFO] 
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: archetype.it
[INFO] Parameter: artifactId, Value: basic-site
[INFO] Parameter: version, Value: 0.1-SNAPSHOT
[INFO] Parameter: package, Value: null
[INFO] Parameter: packageInPathFormat, Value: null
[INFO] Parameter: groupId, Value: archetype.it
[INFO] Parameter: artifactId, Value: basic-site
[INFO] Parameter: version, Value: 0.1-SNAPSHOT
[INFO] Project created from Archetype in dir: 
/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master/m/maven-archetype-site/target/test-classes/projects/it-basic/project/basic-site
[INFO] Invoking post-archetype-generation goals: clean site
[INFO] Picked up JAVA_TOOL_OPTIONS: 
-Dmaven.ext.class.path="/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master@tmp/withMavend31f0f57/pipeline-maven-spy.jar"
 
-Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master@tmp/withMavend31f0f57"
 
[INFO] [INFO] 
[INFO] [INFO] --- maven-resources-plugin:3.0.2:testResources 
(default-testResources) @ basic-portlet ---
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory 
/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master/m/maven-archetype-portlet/target/test-classes/projects/it-basic/project/basic-portlet/src/test/resources
[INFO] [INFO] 
[INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) 
@ basic-portlet ---
[INFO] [INFO] No sources to compile
[INFO] [INFO] 
[INFO] [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ 
basic-portlet ---
[INFO] [INFO] No tests to run.
[INFO] [INFO] 
[INFO] [INFO] --- maven-war-plugin:3.2.2:war (default-war) @ basic-portlet ---
Sending interrupt signal to process
[INFO] Post-archetype-generation invoker exit code: 143
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Maven Archetypes 1.5-SNAPSHOT ............... SUCCESS [ 11.685 s]
[INFO] Maven Archetype Archetype .......................... SUCCESS [ 11.553 s]
[INFO] Maven Simple J2EE Archetype ........................ SUCCESS [  6.377 s]
[INFO] Maven Plugin Archetype ............................. SUCCESS [ 18.291 s]
[INFO] Maven Plugin Site Archetype ........................ SUCCESS [  9.294 s]
[INFO] Maven Portlet Archetype ............................ SUCCESS [  5.533 s]
[INFO] Maven Quickstart Archetype ......................... SUCCESS [  8.724 s]
[INFO] Maven Simple Project Archetype ..................... SUCCESS [  8.432 s]
[INFO] Maven Site Archetype ............................... FAILURE [  0.327 s]
[INFO] Maven Archetype for Simple Site .................... SKIPPED
[INFO] Maven Site Skin Archetype .......................... SKIPPED
[INFO] Maven Webapp Archetype 1.5-SNAPSHOT ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:21 min
[INFO] Finished at: 2019-01-31T13:05:25Z
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "run-its" could not be activated because it 
does not exist.
[INFO] [jenkins-event-spy] Generated 
/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master@tmp/withMavend31f0f57/maven-spy-20190131-130403-48316569080096481676710.log
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-archetype-plugin:3.0.1:integration-test 
(default-integration-test) on project maven-archetype-site: 
[ERROR] Archetype IT 'it-basic' failed: Execution failure: exit code = 143
[ERROR] -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :maven-archetype-site
[INFO] [INFO] Packaging webapp
[INFO] [INFO] Assembling webapp [basic-portlet] in 
[/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master/m/maven-archetype-portlet/target/test-classes/projects/it-basic/project/basic-portlet/target/basic-portlet-0.1-SNAPSHOT]
[INFO] [INFO] Processing war project
[INFO] [INFO] Copying webapp resources 
[/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master/m/maven-archetype-portlet/target/test-classes/projects/it-basic/project/basic-portlet/src/main/webapp]
[INFO] [INFO] Webapp assembled in [75 msecs]
[INFO] Post-archetype-generation invoker exit code: 143
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Maven Archetypes 1.5-SNAPSHOT ............... SUCCESS [ 13.890 s]
[INFO] Maven Archetype Archetype .......................... SUCCESS [ 14.861 s]
[INFO] Maven Simple J2EE Archetype ........................ SUCCESS [  8.515 s]
[INFO] Maven Plugin Archetype ............................. SUCCESS [ 23.201 s]
[INFO] Maven Plugin Site Archetype ........................ SUCCESS [ 11.713 s]
[INFO] Maven Portlet Archetype ............................ FAILURE [  6.531 s]
[INFO] Maven Quickstart Archetype ......................... SKIPPED
[INFO] Maven Simple Project Archetype ..................... SKIPPED
[INFO] Maven Site Archetype ............................... SKIPPED
[INFO] Maven Archetype for Simple Site .................... SKIPPED
[INFO] Maven Site Skin Archetype .......................... SKIPPED
[INFO] Maven Webapp Archetype 1.5-SNAPSHOT ................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:20 min
[INFO] Finished at: 2019-01-31T13:05:25Z
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "run-its" could not be activated because it 
does not exist.
[INFO] [jenkins-event-spy] Generated 
/home/jenkins/jenkins-slave/workspace/aven-box_maven-archetypes_master@tmp/withMaven1daf485b/maven-spy-20190131-130404-8176811486397391494033.log
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-archetype-plugin:3.0.1:integration-test 
(default-integration-test) on project maven-archetype-portlet: 
[ERROR] Archetype IT 'it-basic' failed: Execution failure: exit code = 143
[ERROR] -> [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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :maven-archetype-portlet
script returned exit code 1
Sending interrupt signal to process
script returned exit code 1
Sending interrupt signal to process
[Pipeline] // node
[Pipeline] // node
[Pipeline] // node
Sending interrupt signal to process
Sending interrupt signal to process
[Pipeline] }
Failed in branch windows-jdk7
[Pipeline] }
Failed in branch windows-jdk8
[Pipeline] }
Failed in branch windows-jdk11
[Pipeline] }
[Pipeline] }
[Pipeline] // dir
[Pipeline] // dir
[Pipeline] }
[Pipeline] }
[withMaven] Publishers: Pipeline Graph Publisher: 3 ms
[withMaven] Publishers: Pipeline Graph Publisher: 4 ms
[withMaven] Publishers: Pipeline Graph Publisher: 1 ms
[withMaven] Publishers: 
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:basic-project:jar:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-archetype/target/test-classes/projects/it-basic/project/basic-archetype/target/test-classes/projects/it-basic/project/basic-project/target/surefire-reports/*.xml
Recording test results
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:basic-project:jar:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-archetype/target/test-classes/projects/it-basic/project/basic-archetype/target/test-classes/projects/it-basic/project/basic-project/target/surefire-reports/*.xml
Recording test results
[withMaven] Publishers: Junit Publisher: 628 ms
[withMaven] Publishers: Junit Publisher: 959 ms
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:logging:jar:0.1-SNAPSHOT generated by maven-surefire-plugin:test 
(default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/projects/logging/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:primary-source:jar:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/primary-source/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:servlet:war:0.1-SNAPSHOT generated by maven-surefire-plugin:test 
(default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/servlets/servlet/target/surefire-reports/*.xml
Recording test results
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:logging:jar:0.1-SNAPSHOT generated by maven-surefire-plugin:test 
(default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/projects/logging/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:ejbs:ejb:0.1-SNAPSHOT generated by maven-surefire-plugin:test 
(default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/ejbs/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:primary-source:jar:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/primary-source/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
None of the test reports contained any result
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:servlet:war:0.1-SNAPSHOT generated by maven-surefire-plugin:test 
(default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/servlets/servlet/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:ejbs:ejb:0.1-SNAPSHOT generated by maven-surefire-plugin:test 
(default-test): 
m/maven-archetype-j2ee-simple/target/test-classes/projects/it-basic/project/basic-j2ee-simple/ejbs/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
Click here to forcibly terminate running steps
Click here to forcibly terminate running steps
[withMaven] Publishers: Pipeline Graph Publisher: 4 ms, Junit Publisher: 2081 
ms, Dependencies Fingerprint Publisher: 2799 ms
[withMaven] Publishers: Pipeline Graph Publisher: 3 ms, Junit Publisher: 644 
ms, Dependencies Fingerprint Publisher: 2785 ms
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{archetype.it:basic-plugin:maven-plugin:0.1-SNAPSHOT(version: 
0.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test
  integration-test}: 
m/maven-archetype-plugin/target/test-classes/projects/it-basic/project/basic-plugin/target/invoker-reports/*.xml
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{archetype.it:basic-plugin:maven-plugin:0.1-SNAPSHOT(version: 
0.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.1.0@integration-test
  integration-test}: 
m/maven-archetype-plugin/target/test-classes/projects/it-basic/project/basic-plugin/target/invoker-reports/*.xml
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:basic-plugin:maven-plugin:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-plugin/target/test-classes/projects/it-basic/project/basic-plugin/target/surefire-reports/*.xml
Recording test results
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:basic-plugin:maven-plugin:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-plugin/target/test-classes/projects/it-basic/project/basic-plugin/target/surefire-reports/*.xml
Recording test results
[withMaven] Publishers: Pipeline Graph Publisher: 1 ms, Invoker Publisher: 1185 
ms, Junit Publisher: 671 ms
[withMaven] Publishers: Pipeline Graph Publisher: 1 ms, Invoker Publisher: 1671 
ms, Junit Publisher: 647 ms
[withMaven] Publishers: 
[withMaven] Publishers: 
[withMaven] Publishers: 
[withMaven] One or multiple Maven executions have been ignored by the Jenkins 
Pipeline Maven Plugin because they have been interrupted before completion (1). 
See Pipeline Maven Plugin FAQ for more details.
[Pipeline] // withMaven
[Pipeline] echo
[FAILURE-004] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[withMaven] Publishers: 
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] }
Failed in branch linux-jdk8
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:basic-portlet:war:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-portlet/target/test-classes/projects/it-basic/project/basic-portlet/target/surefire-reports/*.xml
Recording test results
None of the test reports contained any result
[withMaven] Publishers: Junit Publisher: 163 ms
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:basic-quickstart:jar:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-quickstart/target/test-classes/projects/it-basic/project/basic-quickstart/target/surefire-reports/*.xml
Recording test results
[withMaven] Publishers: Junit Publisher: 661 ms
[withMaven] junitPublisher - Archive test results for Maven artifact 
archetype.it:basic-simple:jar:0.1-SNAPSHOT generated by 
maven-surefire-plugin:test (default-test): 
m/maven-archetype-simple/target/test-classes/projects/it-basic/project/basic-simple/target/surefire-reports/*.xml
Recording test results
[withMaven] Publishers: Pipeline Graph Publisher: 1 ms, Junit Publisher: 657 ms
[Pipeline] // withMaven
[Pipeline] echo
[FAILURE-004] org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] }
Failed in branch linux-jdk11
[Pipeline] // parallel
[Pipeline] echo
[FAILURE-001] 
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts 
not permitted to use method 
org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper getRawBuild
[Pipeline] stage
[Pipeline] { (Notifications)
[Pipeline] echo
Build result: FAILURE
[Pipeline] jiraIssueSelector
[Pipeline] emailext

Reply via email to