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

Reporting plugins report error on M2 project when one module doesn't have results

    XMLWordPrintable

Details

    Description

      after a successful build my result page shows the message "During parsing an error has been reported." for the Checkstyle, PMD and CPD plugin as well as the actual fixed/new warnings. When I click on the link [1] it says "No report files were found. Configuration error?" But the reports can be found as the warnings are correct.

      It is a multimodule maven project, which runs the pmd and checkstyle reports itself so that Hudson can pick up the results.

      I'm using a M2 job type and there is one module without results.

      Layout:

      /pom.xml <- aggregator pom, parent = released company pom
      /parent
      /parent/pom.xml <- parent pom, parent = released company pom
      /module-1
      /module-1/pom.xml <- module pom, parent = parent/pom.xml
      /module-2
      /module-2/pom.xml <- module pom, parent = parent/pom.xml

      The parent module doesn't contain any sources, so this doesn't contain any result files.

      Attachments

        Activity

          drulli Ulli Hafner added a comment -

          Simple solution: skip parsing step for packaging 'pom'.

          drulli Ulli Hafner added a comment - Simple solution: skip parsing step for packaging 'pom'.
          drulli Ulli Hafner added a comment -

          Error messages should contain a reference to the maven module, if available.

          drulli Ulli Hafner added a comment - Error messages should contain a reference to the maven module, if available.
          oczkins oczkins added a comment -

          not only pom but any one that do not produce analisis report like 'ear' for example

          oczkins oczkins added a comment - not only pom but any one that do not produce analisis report like 'ear' for example

          Code changed in hudson
          User: : drulli
          Path:
          trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/core/FilesParser.java
          http://jenkins-ci.org/commit/33226
          Log:
          [FIXED JENKINS-6895]: don't report an error in Maven projects if there is no analysis file to parse.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/core/FilesParser.java http://jenkins-ci.org/commit/33226 Log: [FIXED JENKINS-6895] : don't report an error in Maven projects if there is no analysis file to parse.
          drulli Ulli Hafner added a comment -

          Integrated in Hudson Plug-ins (Compile) #30
          [FIXED JENKINS-6895]: don't report an error in Maven projects if there is no analysis file to parse.

          drulli Ulli Hafner added a comment - Integrated in Hudson Plug-ins (Compile) #30 [FIXED JENKINS-6895] : don't report an error in Maven projects if there is no analysis file to parse.

          People

            drulli Ulli Hafner
            nick_stolwijk nick_stolwijk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: