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

CCCC Plugin doesn't appear to run for failed builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cccc-plugin
    • Labels:
      None
    • Environment:
      Hudson 1.375 + v0.3 of CCCC - but we do hope to move to Jenkins.
    • Similar Issues:

      Description

      I noticed that the CCCC trend chart was missing on a few projects that I have configured to use it. It looks like the matter boils down to the project's CCCC report not being parsed on failed builds ("Parsing cccc results" only shows in the console for non failed builds). That appears to cause no results to be stored for the project.

      The trend chart was missing on the projects, because that only appears on the project's page when there's more than one unstable or successful builds. This makes sense for the first builds that use cccc, but not when there's 40 or so configured builds. For ex. say builds A through Z are configured with cccc, and build Y failed, the trend chart only shows results for Y and Z. The chart went missing for projects whose previous build had failed.

      Since the project's source files to count are still there even for a failed build and I can still generate a report, it would be good if the plugin would fire off even during a failed build and persist results. Hopefully that will also help resolve the secondary issue with the chart only showing results for the unbroken series of unstable or successful builds.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccPublisher.java
          src/main/resources/com/thalesgroup/hudson/plugins/cccc/CcccPublisher/config.jelly
          http://jenkins-ci.org/commit/cccc-plugin/71f94b158b6f9a6d4e581006818a9480cc825c4f
          Log:
          Fixed JENKINS-10584

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccPublisher.java src/main/resources/com/thalesgroup/hudson/plugins/cccc/CcccPublisher/config.jelly http://jenkins-ci.org/commit/cccc-plugin/71f94b158b6f9a6d4e581006818a9480cc825c4f Log: Fixed JENKINS-10584
          Hide
          gbois Gregory Boissinot added a comment -

          I added a checkbox to run CCCC on failed build

          Show
          gbois Gregory Boissinot added a comment - I added a checkbox to run CCCC on failed build

            People

            Assignee:
            gbois Gregory Boissinot
            Reporter:
            jed624 jed624
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: