-
Bug
-
Resolution: Won't Fix
-
Critical
-
None
-
OS: Windows
Problem here with Jenkins 1.609.1 mit Maven builds and violations are checked (and the violation limits are exceeded).
Maven integration plugin 2.10
Violation plugin 0.7.11
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:462) 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:865) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)
- is blocked by
-
JENKINS-33423 configuring maven-checkstyle-plugin:2.17:checkstyle error cannot change build result while in COMPLETED
-
- Resolved
-
- is related to
-
JENKINS-25406 MavenBuild$ProxyImpl.setResult illegally called after build is COMPLETED
-
- Open
-
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