I downloaded the 1.19 source and tried debugging through it with my version of jenkins and plugins. I think I traced down the issue.

The DefaultCheckstyleRule makes a call to:

ActionRetriever.getResult(build, Result.UNSTABLE, CheckStyleResultAction.class);

which is ALWAYS returning an empty list in my setup.


It seems the build doesn't have any CheckStyleResultAction instance in it's actions, but it does have a CheckStyleMavenResultAction instance.

Both of these classes are instance's of

hudson.plugins.analysis.core.ResultAction<hudson.plugins.checkstyle.CheckStyleResult>

So perhaps better code would be to instead of iterating over all actions and returning those of type CheckStyleResultAction, instead iterating over all actions, calling their getResult() method, and returning those results which are instances of CheckStyleResult.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to