Our WORKSPACE path is;
Note the '#' in this path.
The build fails over cppcheck with the following log;
[Cppcheck] Starting the cppcheck analysis.
[Cppcheck] Processing 1 files with the pattern 'cppcheck-result.xml'.
[Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
- with linked exception:
[java.io.FileNotFoundException: C:\JenkinsBuild\jenkins\workspace\development_ (The system cannot find the file specified)]
Build step 'Publish Cppcheck results' changed build result to FAILURE
Build step 'Publish Cppcheck results' marked build as failure
Apparently the cppcheck plugin finds the cppcheck-result.xml file but the parser fails to open because the path is truncated upon the '#'.
As a workaround we copy the cppcheck-result.xml file in to;