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

Not working with cppcheck 1.63

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Running the cppcheck plugin on a report generated with cppcheck 1.63 (current stable version) gives the following error:

      [Cppcheck] Starting the cppcheck analysis.
      [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
      [Cppcheck] Parsing throws exceptions. org.jenkinsci.plugins.cppcheck.model.Error cannot be cast to org.jenkinsci.plugins.cppcheck.model.Results
      Build step 'Publish Cppcheck results' changed build result to FAILURE
      Build step 'Publish Cppcheck results' marked build as failure

      It works fine with cppcheck 1.62

        Attachments

          Activity

          Hide
          mixalturek Michal Turek added a comment -

          Hi,

          I have just compiled and tried cppcheck 1.63 with latest version of the plugin and everything works for me. The output is not identical to cppcheck 1.61, but the file format is the same. I have Debian GNU/Linux.

          • How do you execute Cppcheck? Parsing of both new and old XML format produce no exception.

          ./cppcheck --enable=all --inconclusive --xml --xml-version=2 DIRECTORY 2> cppcheck.xml
          ./cppcheck --enable=all --inconclusive --xml DIRECTORY 2> cppcheck.xml

          • What version of plugin do you use?
          • What platform (Linux/Windows)?
          • Can you attach the report file generated by Cppcheck that causes the issue?

          Thanks,
          Michal

          Show
          mixalturek Michal Turek added a comment - Hi, I have just compiled and tried cppcheck 1.63 with latest version of the plugin and everything works for me. The output is not identical to cppcheck 1.61, but the file format is the same. I have Debian GNU/Linux. How do you execute Cppcheck? Parsing of both new and old XML format produce no exception. ./cppcheck --enable=all --inconclusive --xml --xml-version=2 DIRECTORY 2> cppcheck.xml ./cppcheck --enable=all --inconclusive --xml DIRECTORY 2> cppcheck.xml What version of plugin do you use? What platform (Linux/Windows)? Can you attach the report file generated by Cppcheck that causes the issue? Thanks, Michal
          Hide
          rggjan rggjan added a comment -

          Yes, this seems to be fixed already... maybe cppcheck 1.63.1 contained some fixes.

          Thanks anyway.

          Show
          rggjan rggjan added a comment - Yes, this seems to be fixed already... maybe cppcheck 1.63.1 contained some fixes. Thanks anyway.

            People

            • Assignee:
              mixalturek Michal Turek
              Reporter:
              rggjan rggjan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: