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

Parser fails in case workspace path contains a hash character.

    Details

    • Similar Issues:

      Description

      Our WORKSPACE path is;
      C:\JenkinsBuild\jenkins\workspace\development_#01_Thor12Inch

      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;

      C:\JenkinsBuild\jenkins\workspace\development_

        Attachments

          Activity

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              owillebo Okko Willeboordse
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: