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

The Findbugs XML file is not searched correctly with latest Maven Findbugs plugin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.451, Maven 3.0.4, Maven Findbugs Plugin 2.4.0, Jenkins Findbugs Plugin 4.33

      Description

      When using the Maven2/3 job type, the Findbugs XML file isn't found. However, it is found under the following circumstances:

      • Using a free-style build
      • Adding <findbugsXmlOutput>true</findbugsXmlOutput> to the Maven Findbugs configuration. But this parameter has been deprecated. From the Maven site, it's not very clear what its behavior is: This has been deprecated and is on by default. Default value is: false.

      Even though the generated files are the same, the plugin seems to search for the XML files in a different way.

      Here's the output when the XML files are not found:

      [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ base-impl ---
      [INFO] Fork Value is true
           [java] Warnings generated: 4
      [INFO] Done FindBugs Analysis....
      [FINDBUGS] Parsing 1 files in /ige/jenkins/work/jobs/base/workspace/base-impl/target
      [FINDBUGS] Successfully parsed file /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugs.xml of module Implementation of Base Services with 0 warnings.
      

      Here's the output when the XML files are found:

      [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ base-impl ---
           [java] Warnings generated: 4
      [INFO] Done FindBugs Analysis....
      [FINDBUGS] Parsing 1 files in /ige/jenkins/work/jobs/base/workspace/base-impl/target
      [FINDBUGS] Successfully parsed file /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugsXml.xml of module Implementation of Base Services with 4 warnings.
      

      Also see the discussion on the mailing list.

        Activity

        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Ulli Hafner
        Path:
        plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java
        plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java
        plugin/src/test/java/hudson/plugins/findbugs/FindBugsPluginTest.java
        http://jenkins-ci.org/commit/findbugs-plugin/2d80d625949524a81794ae0b4249872f94feb556
        Log:
        [FIXED JENKINS-12853] Always use findbugsXml.xml when
        findbugs-maven-plugin version >= 2.4.0 is used.

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java plugin/src/test/java/hudson/plugins/findbugs/FindBugsPluginTest.java http://jenkins-ci.org/commit/findbugs-plugin/2d80d625949524a81794ae0b4249872f94feb556 Log: [FIXED JENKINS-12853] Always use findbugsXml.xml when findbugs-maven-plugin version >= 2.4.0 is used.
        Hide
        dogfood dogfood added a comment -

        Integrated in plugins_findbugs #388
        [FIXED JENKINS-12853] Always use findbugsXml.xml when (Revision 2d80d625949524a81794ae0b4249872f94feb556)

        Result = SUCCESS
        Ulli Hafner :
        Files :

        • plugin/src/test/java/hudson/plugins/findbugs/FindBugsPluginTest.java
        • plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java
        • plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java
        Show
        dogfood dogfood added a comment - Integrated in plugins_findbugs #388 [FIXED JENKINS-12853] Always use findbugsXml.xml when (Revision 2d80d625949524a81794ae0b4249872f94feb556) Result = SUCCESS Ulli Hafner : Files : plugin/src/test/java/hudson/plugins/findbugs/FindBugsPluginTest.java plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java plugin/src/main/java/hudson/plugins/findbugs/FindBugsPlugin.java

          People

          • Assignee:
            drulli Ulli Hafner
            Reporter:
            cristalp cristalp
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: