Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9730

FindBugs repport result in not displayed from MMI build repport

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • Windows XP
      Static Analysis Collector Plug-in : 1.10
      FindBugs Plug-in : 4.23
      Maven : 3.0.3

      Hello,

      It seems that FindBugs Plug-in is not retrieving data from findBugsXml.xml file generated by maven findbugs-maven-plugin.

      Into build report screen have got these results:
      [...]
      ------ FindBugs: 0 warnings dans 0 fichiers FindBugs.
      ------ No warnings since build 38.
      ------ New zero warnings highscore: no warnings since yesterday!

      But result from the console is (2 warnings):
      ------[TASKS] Skipping maven reporter: there is already a result available.
      ------[INFO]
      ------[INFO] — findbugs-maven-plugin:2.3.2:findbugs (default-cli) @ portageclassic —
      ------[INFO] ****** FindBugsMojo execute *******
      ------[INFO] canGenerate is true
      ------[INFO] ****** FindBugsMojo executeFindbugs *******
      ------[INFO] Temp File is d:\documents[user]\.hudson\jobs[project]\workspace\PortageClassic\target\findbugsTemp.xml
      ------[INFO] Fork Value is true
      ------ [java] Warnings generated: 2
      ------[INFO] xmlOutput is false
      ------[TASKS] Skipping maven reporter: there is already a result available.
      ------[INFO]
      ------[INFO] — maven-checkstyle-plugin:2.6:checkstyle (default-cli) @ portageclassic —
      ------[INFO]
      ------[INFO] There are 783 checkstyle errors.
      [...]

      And the xml file is generated and present into [...]\.hudson\jobs\ChaineClassic\workspace[projectName]\target\findbugsXml.xml

      I've created a maven project and have the following configuration:

      • Find Bugs project configuration by default and activated
      • Maven Goal : install findbugs:findbugs checkstyle:checkstyle pmd:cpd pmd:pmd
      • Maven parent pom configuration:
        <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <targetJdk>1.6</targetJdk>
        </properties>

      <reporting>
      <plugins>
      <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>findbugs-maven-plugin</artifactId>
      <version>2.3.2</version>
      <configuration>
      <findbugsXmlOutput>true</findbugsXmlOutput>
      <xmlOutput>true</xmlOutput>
      </configuration>
      </plugin>
      [...]
      </plugins>
      </reporting>

      Thanks

            mdonohue mdonohue
            joan_ruget Joan Ruget
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: