While doing some jenkins updates I've now dug into this a little more deeply and I can now see exactly why the files are not being displayed. If I go to one of the summary view panes e.g.( cppcheckResult/source.all) I get an error like:
Can't read file: /var/jenkins_home/jobs/<job-directory>/jobs/<jobname>/workspace-files/ed57db50.tmp
However if I go and look at the jenkins_home on the masterI can see that the path should actually be:
So it just looks like the plugin is generating the wrong filesystem path( its missing the builds/<buildnumber> bit) and it has nothing to do with the difference in FS path between the jenkins master and the build slave as I get the same issue even if I make cppcheck produce workspace root relative paths for its errors using:
In the cppcheck command line arguments.