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
findbugs.PNG



the build log looks like this :

[18:14:38][Step 2/2] [INFO] BUILD SUCCESS

[18:14:38][Step 2/2] [INFO] ------------------------------------------------------------------------

[18:14:38][Step 2/2] [INFO] Total time: 1:36:15.433s

[18:14:38][Step 2/2] [INFO] Finished at: Wed Nov 06 18:14:38 IST 2013

[18:14:38][Step 2/2] [INFO] Final Memory: 66M/331M

[18:14:38][Step 2/2] [INFO] ------------------------------------------------------------------------

[18:14:40][Step 2/2] Process exited with code 0

[18:14:40][Step 2/2] Publishing artifacts

[18:14:40][Publishing artifacts] Collecting files to publish: [D:\TeamCity\buildAgent\temp\buildTmp\.tc-maven-bi\maven-build-info.xml.gz => .teamcity]

[18:14:40][Publishing artifacts] Sending D:/TeamCity/buildAgent/temp/buildTmp/.tc-maven-bi/maven-build-info.xml.gz

[18:14:47]Waiting for 57 service processes to complete

[18:14:56]FindBugs report watcher

[18:14:56][FindBugs report watcher] 41 reports found for paths:

[18:14:56][FindBugs report watcher] **/findbugs/**.xml

[18:14:56][FindBugs report watcher] **/findbugs.xml

[18:14:56][FindBugs report watcher] **/findbugs/*.xml

[18:14:56][FindBugs report watcher] Successfully parsed

[18:14:56][Successfully parsed] 41 reports

[18:14:56]Publishing internal artifacts

[18:14:56][Publishing internal artifacts] Sending build.finish.properties.gz file

[18:14:56]Build finished


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

2 comments
Comment actions Permalink

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.
0
Comment actions Permalink

can you please explain to me what do you refer in "files on agent matched by the patterns specified" ?

0

Please sign in to leave a comment.