See 
https://builds.apache.org/job/maven-box/job/maven-checkstyle-plugin/job/MCHECKSTYLE-289/21/

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

All tests passed

Build log:
[...truncated 11689 lines...]
[INFO]           MCHECKSTYLE-169/pom.xml .......................... SUCCESS 
(4.5 s)
[INFO] Building: multi-modules/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-295/pom.xml .......................... SUCCESS 
(4.7 s)
[INFO] Building: multimoduleproject/pom.xml
[INFO]           multi-modules/pom.xml ............................ SUCCESS 
(7.6 s)
[INFO] Building: MCHECKSTYLE-224/pom.xml
[INFO]           multimoduleproject/pom.xml ....................... SUCCESS 
(5.9 s)
[INFO] Building: MCHECKSTYLE-169/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-169/pom.xml .......................... SUCCESS 
(4.8 s)
[INFO] Building: multi-modules/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-224/pom.xml .......................... SUCCESS 
(7.9 s)
[INFO] Building: MCHECKSTYLE-172/pom.xml
[INFO]           multi-modules/pom.xml ............................ SUCCESS 
(8.2 s)
[INFO] Building: MCHECKSTYLE-224/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-172/pom.xml .......................... SUCCESS 
(6.2 s)
[INFO] Building: MCHECKSTYLE-222-resources/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-222-resources/pom.xml ................ SUCCESS 
(4.6 s)
[INFO] Building: check-fail/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-224/pom.xml .......................... SUCCESS 
(8.2 s)
[INFO] Building: MCHECKSTYLE-172/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           check-fail/pom.xml ............................... SUCCESS 
(5.6 s)
[INFO] Building: checkstyle-goal/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-172/pom.xml .......................... SUCCESS 
(6.9 s)
[INFO] Building: MCHECKSTYLE-222-resources/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           checkstyle-goal/pom.xml .......................... SUCCESS 
(5.1 s)
[INFO] Building: MCHECKSTYLE-137/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-222-resources/pom.xml ................ SUCCESS 
(5.3 s)
[INFO] Building: check-fail/pom.xml
[INFO]           MCHECKSTYLE-137/pom.xml .......................... SUCCESS 
(4.7 s)
[INFO] Building: MCHECKSTYLE-222-no-resources/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-222-no-resources/pom.xml ............. SUCCESS 
(3.1 s)
[INFO] Building: MCHECKSTYLE-131/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           check-fail/pom.xml ............................... SUCCESS 
(6.0 s)
[INFO] Building: checkstyle-goal/pom.xml
[INFO]           MCHECKSTYLE-131/pom.xml .......................... SUCCESS 
(4.0 s)
[INFO] Building: MCHECKSTYLE-268/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           checkstyle-goal/pom.xml .......................... SUCCESS 
(5.4 s)
[INFO] Building: MCHECKSTYLE-137/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-268/pom.xml .......................... SUCCESS 
(5.8 s)
[INFO] Building: MCHECKSTYLE-253-jdk8/pom.xml
[INFO]           MCHECKSTYLE-137/pom.xml .......................... SUCCESS 
(5.4 s)
[INFO] Building: MCHECKSTYLE-222-no-resources/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-253-jdk8/pom.xml ..................... SUCCESS 
(4.8 s)
[INFO] Building: MCHECKSTYLE-219-no-license_failure/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-222-no-resources/pom.xml ............. SUCCESS 
(3.4 s)
[INFO] Building: MCHECKSTYLE-131/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-219-no-license_failure/pom.xml ....... SUCCESS 
(4.1 s)
[INFO] Building: MCHECKSTYLE-214-basedir-resource/pom.xml
[INFO]           MCHECKSTYLE-131/pom.xml .......................... SUCCESS 
(4.5 s)
[INFO] Building: MCHECKSTYLE-268/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-214-basedir-resource/pom.xml ......... SUCCESS 
(3.5 s)
[INFO] Building: inlinerules/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-268/pom.xml .......................... SUCCESS 
(6.1 s)
[INFO] Building: MCHECKSTYLE-253-jdk8/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           inlinerules/pom.xml .............................. SUCCESS 
(5.0 s)
[INFO] Building: MCHECKSTYLE-337/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-253-jdk8/pom.xml ..................... SUCCESS 
(5.6 s)
[INFO] Building: MCHECKSTYLE-219-no-license_failure/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-337/pom.xml .......................... SUCCESS 
(5.6 s)
[INFO] Building: MCHECKSTYLE-193/pom.xml
[INFO]           MCHECKSTYLE-193/pom.xml .......................... SUCCESS 
(4.8 s)
[INFO] Building: MCHECKSTYLE-219-no-license_success/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-219-no-license_failure/pom.xml ....... SUCCESS 
(4.8 s)
[INFO] Building: MCHECKSTYLE-214-basedir-resource/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-214-basedir-resource/pom.xml ......... SUCCESS 
(4.2 s)
[INFO] Building: inlinerules/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-219-no-license_success/pom.xml ....... SUCCESS 
(5.0 s)
[INFO] Building: MCHECKSTYLE-70-multi-sourcefolder/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           inlinerules/pom.xml .............................. SUCCESS 
(5.5 s)
[INFO] Building: MCHECKSTYLE-337/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-70-multi-sourcefolder/pom.xml ........ SUCCESS 
(7.1 s)
[INFO] Building: MCHECKSTYLE-225-customHeader/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-337/pom.xml .......................... SUCCESS 
(6.2 s)
[INFO] Building: MCHECKSTYLE-193/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-225-customHeader/pom.xml ............. SUCCESS 
(5.4 s)
[INFO] Building: MCHECKSTYLE-220/pom.xml
[INFO]           MCHECKSTYLE-193/pom.xml .......................... SUCCESS 
(5.4 s)
[INFO] Building: MCHECKSTYLE-219-no-license_success/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-220/pom.xml .......................... SUCCESS 
(5.6 s)
[INFO] Building: MCHECKSTYLE-332_cache-checker/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-219-no-license_success/pom.xml ....... SUCCESS 
(5.9 s)
[INFO] Building: MCHECKSTYLE-70-multi-sourcefolder/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-332_cache-checker/pom.xml ............ SUCCESS 
(5.5 s)
[INFO] Building: MCHECKSTYLE-225-pluginManagement/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-225-pluginManagement/pom.xml ......... SUCCESS 
(5.4 s)
[INFO] Building: MCHECKSTYLE-332_cache-treewalker/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-70-multi-sourcefolder/pom.xml ........ SUCCESS 
(7.6 s)
[INFO] Building: MCHECKSTYLE-225-customHeader/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-332_cache-treewalker/pom.xml ......... SUCCESS 
(6.0 s)
[INFO] Building: MCHECKSTYLE-260-testSourceDirectories/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-225-customHeader/pom.xml ............. SUCCESS 
(5.7 s)
[INFO] Building: MCHECKSTYLE-220/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-260-testSourceDirectories/pom.xml .... SUCCESS 
(6.9 s)
[INFO] Building: checkstyle-report/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-220/pom.xml .......................... SUCCESS 
(6.4 s)
[INFO] Building: MCHECKSTYLE-332_cache-checker/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           checkstyle-report/pom.xml ........................ SUCCESS 
(6.4 s)
[INFO] Building: MCHECKSTYLE-173-with-charset/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-332_cache-checker/pom.xml ............ SUCCESS 
(6.4 s)
[INFO] Building: MCHECKSTYLE-225-pluginManagement/pom.xml
[INFO]           MCHECKSTYLE-173-with-charset/pom.xml ............. FAILED (4.8 
s)
[INFO]   The build exited with code 1. See 
/home/jenkins/jenkins-slave/workspace/heckstyle-plugin_MCHECKSTYLE-289/m/target/it/MCHECKSTYLE-173-with-charset/build.log
 for details.
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ 
maven-checkstyle-plugin ---
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-225-pluginManagement/pom.xml ......... SUCCESS 
(5.8 s)
[INFO] Building: MCHECKSTYLE-332_cache-treewalker/pom.xml
[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.0.1:verify (integration-test) @ 
maven-checkstyle-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 36, Failed: 5, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[WARNING] The following builds failed:
[WARNING] *  MCHECKSTYLE-289/pom.xml
[WARNING] *  MCHECKSTYLE-173-without-charset/pom.xml
[WARNING] *  MCHECKSTYLE-173-with-charset/pom.xml
[WARNING] *  minimal-pom/pom.xml
[WARNING] *  MCHECKSTYLE-129/pom.xml
[INFO] -------------------------------------------------
[WARNING] Ignoring that 5 builds failed.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:26 min
[INFO] Finished at: 2019-01-30T23:14:59Z
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated 
/home/jenkins/jenkins-slave/workspace/heckstyle-plugin_MCHECKSTYLE-289@tmp/withMavenfa33d6c8/maven-spy-20190130-231033-2291379952011010126151.log
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:3.0.1-SNAPSHOT(version:
 3.0.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.0.1@integration-test
  integration-test}: m/target/invoker-reports/*.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-332_cache-treewalker/pom.xml ......... SUCCESS 
(5.4 s)
[INFO] Building: MCHECKSTYLE-260-testSourceDirectories/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           MCHECKSTYLE-260-testSourceDirectories/pom.xml .... SUCCESS 
(6.5 s)
[INFO] Building: checkstyle-report/pom.xml
[INFO] run post-build script verify.groovy
[INFO]           checkstyle-report/pom.xml ........................ SUCCESS 
(6.0 s)
[INFO] Building: MCHECKSTYLE-173-with-charset/pom.xml
[INFO]           MCHECKSTYLE-173-with-charset/pom.xml ............. FAILED (4.6 
s)
[INFO]   The build exited with code 1. See 
/home/jenkins/jenkins-slave/workspace/heckstyle-plugin_MCHECKSTYLE-289@2/m/target/it/MCHECKSTYLE-173-with-charset/build.log
 for details.
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.0.0:check (checkstyle-check) @ 
maven-checkstyle-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.0.1:verify (integration-test) @ 
maven-checkstyle-plugin ---
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 36, Failed: 5, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[WARNING] The following builds failed:
[WARNING] *  MCHECKSTYLE-289/pom.xml
[WARNING] *  MCHECKSTYLE-173-without-charset/pom.xml
[WARNING] *  MCHECKSTYLE-173-with-charset/pom.xml
[WARNING] *  minimal-pom/pom.xml
[WARNING] *  MCHECKSTYLE-129/pom.xml
[INFO] -------------------------------------------------
[WARNING] Ignoring that 5 builds failed.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:47 min
[INFO] Finished at: 2019-01-30T23:15:23Z
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated 
/home/jenkins/jenkins-slave/workspace/heckstyle-plugin_MCHECKSTYLE-289@2@tmp/withMavenfad3f579/maven-spy-20190130-231036-1004234733306455065318.log
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[withMaven] invokerPublisher - Archive invoker results for Maven artifact 
MavenArtifact{org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:3.0.1-SNAPSHOT(version:
 3.0.1-SNAPSHOT, snapshot:false) } generated by 
PluginInvocation{org.apache.maven.plugins:maven-invoker-plugin:3.0.1@integration-test
  integration-test}: m/target/invoker-reports/*.xml
[withMaven] junitPublisher - Archive test results for Maven artifact 
org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:3.0.1-SNAPSHOT 
generated by maven-surefire-plugin:test (default-test): 
m/target/surefire-reports/*.xml
Recording test results
[withMaven] Publishers: Pipeline Graph Publisher: 2 ms, Invoker Publisher: 
39539 ms, Junit Publisher: 3427 ms
[Pipeline] // withMaven
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[withMaven] junitPublisher - Archive test results for Maven artifact 
org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:3.0.1-SNAPSHOT 
generated by maven-surefire-plugin:test (default-test): 
m/target/surefire-reports/*.xml
Recording test results
[withMaven] Publishers: Pipeline Graph Publisher: 3 ms, Invoker Publisher: 
38917 ms, Junit Publisher: 3465 ms
[Pipeline] // withMaven
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // parallel
[Pipeline] echo
[FAILURE-003] AbortException hudson.AbortException: Cannot delete workspace: 
f:\jenkins\jenkins-slave\workspace\tyle-plugin_MCHECKSTYLE-289-VWTFJABBRWF7ZHZ6NWXFDJKEKLTHVET2YVHKYLF4ZSFXFDIIA52A\m\target\invoker-reports\BUILD-check-fail.xml
[Pipeline] stage
[Pipeline] { (Notifications)
[Pipeline] echo
Build result: FAILURE
[Pipeline] jiraIssueSelector
[Pipeline] emailext

Reply via email to