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

PMD plugin does not find report files

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pmd-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.427
      PMD 3.2.0
    • Similar Issues:

      Description

      I generate PMD reports through the "mvn clean install site" command. This generates PMD report files correctly within the Maven site. But the PMD jenkins plugin doesn't seem to pick them up at all. In the build status I see:

      PMD: 0 warnings from 0 PMD files

      Plus I know from the Maven site reports that there are some PMD warnings.

      My Maven project 4 modules. The parent pom configures the PMD plugin, but since it has no code, it contains no pmd.xml

      If I look at the Jenkins workspace, I can find the pmd.xml correctly in <module>/target/pmd.xml, for each module.

        Attachments

          Issue Links

            Activity

            Hide
            dogfood dogfood added a comment -

            Integrated in plugins_analysis-core #178
            [FIXED JENKINS-10820] Don't add an action if there is no result yet.

            Ulli Hafner :
            Files :

            • src/main/java/hudson/plugins/analysis/core/HealthAwareReporter.java
            Show
            dogfood dogfood added a comment - Integrated in plugins_analysis-core #178 [FIXED JENKINS-10820] Don't add an action if there is no result yet. Ulli Hafner : Files : src/main/java/hudson/plugins/analysis/core/HealthAwareReporter.java
            Hide
            myron Myron Boyle added a comment -

            working fine again with analysis-core 1.31
            Thanks Ulli

            Show
            myron Myron Boyle added a comment - working fine again with analysis-core 1.31 Thanks Ulli
            Hide
            marc_boscher Marc Boscher added a comment -

            Just updated. Bug is fixed for me too! Thanks!

            Show
            marc_boscher Marc Boscher added a comment - Just updated. Bug is fixed for me too! Thanks!
            Hide
            jaypi Jean-Pierre Froud added a comment -

            I'm having a similar issue here.

            The plugin doesn't collect pmd.xml unless I explicitly call pmd:pmd in my build.

            Jenkins ver. 1.544
            Static Code Analysis Plug-ins 1.41

            Show
            jaypi Jean-Pierre Froud added a comment - I'm having a similar issue here. The plugin doesn't collect pmd.xml unless I explicitly call pmd:pmd in my build. Jenkins ver. 1.544 Static Code Analysis Plug-ins 1.41
            Hide
            drulli Ulli Hafner added a comment -

            @Jean-Pierre Froud: Please do not comment on resolved issues that might be similar: either create a new issue or discuss your problem in the mailing list before you create the issue (latter is preferred). So we see if this is actually a bug or just a configuration problem.

            Show
            drulli Ulli Hafner added a comment - @Jean-Pierre Froud: Please do not comment on resolved issues that might be similar: either create a new issue or discuss your problem in the mailing list before you create the issue (latter is preferred). So we see if this is actually a bug or just a configuration problem.

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                marc_boscher Marc Boscher
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: