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

Calculate diff against any other cppcheck result

XMLWordPrintable

      The current implementation compares against the previous build of the same project when calculating Delta / Diff.

      This implementation does not change that, but if you pass the new "baselinePattern" parameter to publishCppcheck in your Jenkinsfile it will calculate Diffs and changes from that baseline instead.

      "baselinePattern" has the exact same semantics as the existing "pattern", i.e an xml-file generated by cppcheck. This means you can run cppcheck on almost anything during your pipeline, and compare against this.

       

      Side note: since there were some duplicated code which needed to be run several times to implement this baseline comparison, I have also done some refactoring on this code, especially in CppcheckPublisher.

            strandlie Håkon Strandlie
            strandlie Håkon Strandlie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: