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

PMD plugin does not find report files

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • pmd-plugin
    • None
    • Jenkins 1.427
      PMD 3.2.0

    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

        1. pmd.xml
          0.4 kB
        2. pmdtest.zip
          12 kB

        Issue Links

          Activity

            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
            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
            myron Myron Boyle added a comment -

            working fine again with analysis-core 1.31
            Thanks Ulli

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

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

            marc_boscher Marc Boscher added a comment - Just updated. Bug is fixed for me too! Thanks!

            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

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

            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

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

              Dates

                Created:
                Updated:
                Resolved: