Hello everybody,

In 28dfd90d2d6ae99c57eb174871c46f4e07e303ba a change in jerkins-core
was introduced which results in a IllegalStateException when a plugin
tries to to change the build result when the build is already
completed.

I see why this might have been done, however right now this breaks the
violations-plugin[1]. I am trying to fix this as a lot of jobs here
rely on this plugin and developers are used to it[2].

The ViolationsReporter overrides hudson.maven.MavenReporter#end and
tries to set the result here which leads to the exception in [1] since
above commit.

The end method references hudson.maven.MavenReporter#postBuild however
this method is called after a single Maven module finished but not
after all builds in a reactor finished.

Is there a good way to get hook after the last module finished except
of holding state myself?

And what is the difference between postBuild and leaveModule?

Almost any hints are appreciated[2].

Regards Mirko
[1] https://groups.google.com/d/msg/jenkinsci-users/jrkAQyq6jLs/unCEaa5CFcMJ
[2] The analyze plugin suite gives the information much more dispersed
and jeep, I know the Maven project type is evil ;-))
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAK8jvqy-Q_pVoTAgvqzSOmqu%2BU5PCS6NAkWaHRKs2%3D09vjb%2BRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to