findbugs plugin using maven
Hi
i have a project running in Teamcity (8.0.4 ) using maven. the project in build with something like 20 different projects with one parent project and the other in connected to him with dependencies.
my pom maven flie look like this
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<failOnError>false</failOnError>
<threshold>High</threshold>
<effort>Default</effort>
<xmlOutput>true</xmlOutput>
<xmlOutputDirectory>target/reports/findbugs</xmlOutputDirectory>
</configuration>
</plugin>
</plugins>
</reporting>
in the Additional Build Features i created "XML report processing" with following details
the build log looks like this :
so to me it seems the build is ok and teamcity finds the findbugs files and process them.but
1) the Code inspection Tab is missing, what could be the reason ?
2) when i will fix the Code inspection missing tab, i have a diffrent report for each project, but i don't see any Summary repot for all project. so how can i configure the Code inspection tab to show a summar of all the bugs found ?
i will very appreciate help on the above 2 topics.
thanks,
jonathan
Please sign in to leave a comment.
Hello,
> 1) the Code inspection Tab is missing, what could be the reason ?
Could you please examine the files on agent matched by the patterns specified and attach those accompanied with the teamcity-agent.log form the agent and teamcity-server.log form the server covering the build?
> 2) when i will fix the Code inspection missing tab, i have a diffrent report for each project, but i don't see any Summary repot for all project. so how can i configure the Code inspection tab to show a summar of all the bugs found ?
There is no way to merge inspection reports from different builds in TeamCity. You can probably create a separate build configuration which will run findbugs on the entire codebase in a single build and explore the results there.
I'd also recommend to try using IntelliJ IDEA inspection runner (provided you have IDEA project files checked in) as that can provide a better list of the issue with the code then FindBugs.
can you please explain to me what do you refer in "files on agent matched by the patterns specified" ?