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

Allow "Publish cppCheck results" for failed builds

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: cppcheck-plugin
    • Labels:
      None
    • Environment:
      using cppcheck plugin version 1.24 & Jenkins version 2.138.3
    • Similar Issues:

      Description

      The CppCheck plugin does not execute post build step Publish CppCheck results if the build is already marked as failure.
      The plugin description sais: "This plug-in is not invoked for failed builds, it is only called for stable or unstable builds (i.e., a build with failed tests)."

      This really disables us to have our custom logic for deciding failure conditions

      • we do have many criteria and manage our own limit thresholds across more languages
      • for example we cannot see the CppChecks that need fixing, when the build failed also due to other reasons, like: unit tests, java/js compilation errors, java/js code checker errors, ...

      Can you please consider removing this restiction ?
      IMHO, It may be an advanced option that I need to tick on or off.

        Attachments

          Activity

          Hide
          thomas_dee Thomas Döring added a comment -

          I have the same requirements. So I forked the repo and added a parameter ignoreBuildResult to allow publishing event for FAILED builds.

          If you want to have a look: https://github.com/thomas-dee/cppcheck-plugin

           

          Show
          thomas_dee Thomas Döring added a comment - I have the same requirements. So I forked the repo and added a parameter ignoreBuildResult to allow publishing event for FAILED builds. If you want to have a look: https://github.com/thomas-dee/cppcheck-plugin  

            People

            • Assignee:
              marcosteffan Marco Steffan
              Reporter:
              andovlad Vlad Andone
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: