Updated my installation to Jenkins v2.7.1,
Maven Integration plugin v2.13,
Violation plugin v0.7.11
Jenkins seems still to crash. Build ist marked als FAILED.
Violations checks not usable.
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
java.lang.IllegalStateException: cannot change build result while in COMPLETED
at hudson.model.Run.setResult(Run.java:459)
at hudson.plugins.violations.ViolationsReport.setBuildResult(ViolationsReport.java:542)
at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:100)
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
project=hudson.maven.MavenModuleSet@23a0e0ff[0000-010 Java DE_Startcenter]
project.getModules()=[hudson.maven.MavenModule@2ac26c0f[0000-010 Java DE_Startcenter/0000-010:DE_Startcenter][0000-010 Java DE_Startcenter/0000-010:DE_Startcenter][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@2ac26c0f[0000-010 Java DE_Startcenter/0000-010:DE_Startcenter][0000-010 Java DE_Startcenter/0000-010:DE_Startcenter][relativePath:]
FATAL: cannot change build result while in COMPLETED
java.lang.IllegalStateException: cannot change build result while in COMPLETED
at hudson.model.Run.setResult(Run.java:459)
at hudson.plugins.violations.ViolationsReport.setBuildResult(ViolationsReport.java:542)
at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:100)
at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
We can easily make the consequence less severe, by catching the IllegalStateException and just log it. Then the violation reports will still be populated. But still, the build result wont be UNSTABLE, but instead SUCCESSFUL.
https://github.com/jenkinsci/violations-plugin/pull/68