[JIRA] (JENKINS-59021) Calculate diff against any other cppcheck result

4 views
Skip to first unread message

haakstr@stud.ntnu.no (JIRA)

unread,
Aug 21, 2019, 4:29:02 AM8/21/19
to jenkinsc...@googlegroups.com
Håkon Strandlie assigned an issue to Håkon Strandlie
 
Jenkins / New Feature JENKINS-59021
Calculate diff against any other cppcheck result
Change By: Håkon Strandlie
Assignee: Marco Steffan Håkon Strandlie
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

haakstr@stud.ntnu.no (JIRA)

unread,
Aug 21, 2019, 4:29:02 AM8/21/19
to jenkinsc...@googlegroups.com
Håkon Strandlie created an issue
Issue Type: New Feature New Feature
Assignee: Marco Steffan
Components: cppcheck-plugin
Created: 2019-08-21 08:28
Labels: cppcheck
Priority: Minor Minor
Reporter: Håkon Strandlie

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.

Reply all
Reply to author
Forward
0 new messages