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

publishCppcheck in pipeline fails job not stage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • cppcheck-plugin
    • None

      When cppcheck finds an error publishCppcheck writes the following in the log:

      [Cppcheck] Starting the cppcheck analysis.
      [Cppcheck] Processing 1 files with the pattern 'cppcheck_report.xml'.
      [Cppcheck] Setting build status to FAILURE since total number of issues '1' exceeds the threshold value '0'.
      [Cppcheck] Ending the cppcheck analysis.

      but the stage it runs in is not marked as failed. I have tried using publishCppcheck in both steps and post sections and it makes no difference.

            marcosteffan Marco Steffan
            tsondergaard tsondergaard
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: