A documentation on that will be provided (just don't know yet where to put it correctly...): Until that here is my test-command for the pipeline:
stage "cppcheck"
step([$class: 'CppcheckPublisher',
pattern: "testcppcheck*.xml",
ignoreBlankFiles: false, threshold: "19",
allowNoReport: false,
newThreshold: "", failureThreshold: "",
newFailureThreshold: "", healthy: "", unHealthy: "",
severityError: true,
severityWarning: true,
severityStyle: true,
severityPerformance: true,
severityInformation: true,
severityNoCategory: true,
severityPortability: true,
xSize: 1000, ySize: 200,
numBuildsInGraph: 0,
displayAllErrors: true,
displayErrorSeverity: true,
displayWarningSeverity: true,
displayStyleSeverity: true,
displayPerformanceSeverity: true,
displayInformationSeverity: true,
displayNoCategorySeverity: true,
displayPortabilitySeverity: true])
I think what's needed is to implement the `SimpleBuildStep` class interface. similar to what the xunit plugin does: https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java#L63
cppcheck does not implement this:
https://github.com/jenkinsci/cppcheck-plugin/blob/master/src/main/java/org/jenkinsci/plugins/cppcheck/CppcheckPublisher.java#L32
See also: https://github.com/jenkinsci/cobertura-plugin/issues/50