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

cppcheck plugin will not show results for multiconfiguration project

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a multi-configuration project that creates a cppcheck results file at the end of the build. I gave the plugin the correct path, and it parsed the file successfully.
      However, the link to the cppcheck report is on the main project page (instead of being on the page for each configuration), and states the following:

      "No valid cppcheck data available

      This plugin will not report cppcheck result until there is at least one success or unstable build. "

      I think the cppcheck report link should be individual for configurations, since one might pass and the other might fail (different OS, etc).

        Attachments

          Activity

          Hide
          mcrusoe Michael Crusoe added a comment -

          This error occurs with my setup as well.

          Jenkins v. 1.539 and jenkins-cppcheck 1.14

          Show
          mcrusoe Michael Crusoe added a comment - This error occurs with my setup as well. Jenkins v. 1.539 and jenkins-cppcheck 1.14
          Hide
          mixalturek Michal Turek added a comment -

          This is (was) more likely issue of the multi-configuration project and its user interface.

          "Cppcheck Results" link in menu on top level project page results to "No valid cppcheck data available", which is correct. More user friendly would be to show no link here, but it is (probably) impossible.

              // CppcheckProjectAction class
              public String getDisplayName() {
                  return Messages.cppcheck_CppcheckResults();
              }
          

          Each configuration/axis page shows "Cppcheck Results" link in Jenkins 1.532.2 (latest LTS) and the data are available there. Jenkins 1.447 didn't show the link on that page and the user might be confused. There was different sequence of links/pages to show the data.

          The issue was solved in the multi-configuration code in the meantime, you should update your Jenkins.

          Show
          mixalturek Michal Turek added a comment - This is (was) more likely issue of the multi-configuration project and its user interface. "Cppcheck Results" link in menu on top level project page results to "No valid cppcheck data available", which is correct. More user friendly would be to show no link here, but it is (probably) impossible. // CppcheckProjectAction class public String getDisplayName() { return Messages.cppcheck_CppcheckResults(); } Each configuration/axis page shows "Cppcheck Results" link in Jenkins 1.532.2 (latest LTS) and the data are available there. Jenkins 1.447 didn't show the link on that page and the user might be confused. There was different sequence of links/pages to show the data. The issue was solved in the multi-configuration code in the meantime, you should update your Jenkins.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: