Double checkstyle/pmd/findbugs warnings in a jenkins maven multimodule job

60 views
Skip to first unread message

pa7751

unread,
Feb 20, 2014, 8:39:10 AM2/20/14
to jenkins...@googlegroups.com

I have a jenkins maven job with an aggregator pom and a bunch of submodules. When jenkins displays the aggregated checkstyle/pmd/findbugs warnings it does it like so:

  • submodule 1: 10 warnings
  • submodule 2: 10 warnings
  • Aggregator module: 20 warnings

  • Total: 40 warnings

In other words, the aggregator (rightfully?) aggregates the warnings found in the submodules. Hence the aggregate displays double the actual count

Does any one know what the problem is? Thanks!

Ullrich Hafner

unread,
Feb 20, 2014, 3:36:23 PM2/20/14
to jenkins...@googlegroups.com
You do not need to aggregate in Maven, the Jenkins plugin does that for you.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

pa7751

unread,
Feb 21, 2014, 4:31:17 AM2/21/14
to jenkins...@googlegroups.com
I am using Jenkins only to aggregate. the problem is that in the scenario I highlighted, Jenkins aggregate plugin is showing double the actual number of warnings.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/mXc0N_-trak/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Ullrich Hafner

unread,
Feb 21, 2014, 10:15:32 AM2/21/14
to jenkins...@googlegroups.com
Can please create a new bug report and describe in more detail where the wrong number of warnings are shown (which link did you select?). Maybe an example project that exposes the bug would also help.

pa7751

unread,
Feb 25, 2014, 2:08:43 AM2/25/14
to jenkins...@googlegroups.com
Are we sure that this is a defect? To me it looks like a configuration issue only. The problem is that teh project is multi-module. The main project has the count for all the warnings totalled for its submodule projects. But Jenkins Aggregate count shows the count of all modules i..e Main Project + the count in all submodules. Hence double the number. I think we need to configure things properly and I am no sure how that can be done. Pls advise
Reply all
Reply to author
Forward
0 new messages