• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • cppcheck-plugin
    • None

      Hello
      I have:
      Jenkins ver. 2.138.2 for NAT.
      Cppcheck 1.85
      Cppcheck Plugin 1.24

      When I try to view a detailed scan result (example: https://wiki.jenkins.io/download/attachments/37749668/1.15_code.png?version=1&modificationDate=1395260940000&api=v2) I get the error "Can't read file: Can ' t access the file: file: ".
      Inside the local network everything is allowed.
      Connection to the node via SSH.
      Jenkins on Linux, node on Linux.

      What should I do?

          [JENKINS-54209] Can't read file: Can't access the file

          ice zeng added a comment -

          The bug is up at jenkins 2.150.1, cppcheck plugin: 1.24, cppcheck: 1.82

          ice zeng added a comment - The bug is up at jenkins 2.150.1, cppcheck plugin: 1.24, cppcheck: 1.82

          Yan Liang added a comment -

          In my case, I updated the cppcheck from 1.21 to 1.24, then this issue happens. Jenkins 2.162.

          Yan Liang added a comment - In my case, I updated the cppcheck from 1.21 to 1.24, then this issue happens. Jenkins 2.162.

          Workaround I have achieved is by using custom workspace. With this I was able to access files

          Supraja Muppala added a comment - Workaround I have achieved is by using custom workspace. With this I was able to access files

          li hechao added a comment -

          i use custom workspace, but it can not work smuppala, just only do that? 

          li hechao added a comment - i use custom workspace, but it can not work smuppala , just only do that? 

          hi hechao, 

                    I applied a fix (https://github.com/jenkinsci/cppcheck-plugin/pull/46) for the plugin and it worked. I followed below steps

           

          Cppcheck 1.24 version had an issue and the fix was available online but the code was never pushed. Followed the below steps and it picked up the new code.

          ============================

          Steps to have new plugin on your jenkins Instance.

          login to jenkins server

          cd to /var/lib/jenkins/plugins

          rename cppcheck.jpi cppcheck.jpi.orig.v1.24

          cppcheck cppcheck.orig.v1.24

          download cppcheck.hpi file from https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fcppcheck-plugin/detail/PR-46/2/artifacts/

          Copy to /var/lib/jenkins/plugins dir

          and restart the jenkins service

          ==============================

          Supraja Muppala added a comment - hi hechao,            I applied a fix ( https://github.com/jenkinsci/cppcheck-plugin/pull/46 ) for the plugin and it worked. I followed below steps   Cppcheck 1.24 version had an issue and the fix was available online but the code was never pushed. Followed the below steps and it picked up the new code. ============================ Steps to have new plugin on your jenkins Instance. login to jenkins server cd to /var/lib/jenkins/plugins rename cppcheck.jpi cppcheck.jpi.orig.v1.24 cppcheck cppcheck.orig.v1.24 download cppcheck.hpi file from https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fcppcheck-plugin/detail/PR-46/2/artifacts/ Copy to /var/lib/jenkins/plugins dir and restart the jenkins service ==============================

          ice zeng added a comment -

          ice zeng added a comment - it doesn't work by using custom workspace and install   https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fcppcheck-plugin/detail/PR-46/2/artifacts/

          unkown unkown added a comment -

          I got the same error. Is there any chance to get a working fix for this problem? Without the view for the detailed results, the plugin is not really useful for me.

          unkown unkown added a comment - I got the same error. Is there any chance to get a working fix for this problem? Without the view for the detailed results, the plugin is not really useful for me.

          Mike Scholze added a comment - - edited

          I think cppcheck plugin project is more or less dead. But you can use the new warnings next generation plugin. It contains cppcheck and visualize issues perfectly.

          https://wiki.jenkins.io/display/JENKINS/Warnings+Next+Generation+Plugin

          Mike Scholze added a comment - - edited I think cppcheck plugin project is more or less dead. But you can use the new warnings next generation plugin. It contains cppcheck and visualize issues perfectly. https://wiki.jenkins.io/display/JENKINS/Warnings+Next+Generation+Plugin

          unkown unkown added a comment -

          Thank you for that information. Now  i'm using the warnings next generation plugin.

          unkown unkown added a comment - Thank you for that information. Now  i'm using the warnings next generation plugin.

          uday kumar added a comment -

          Thanks mikescholze, warnings next generation plugin is able to read the file. 

          uday kumar added a comment - Thanks mikescholze , warnings next generation plugin is able to read the file. 

            marcosteffan Marco Steffan
            mamoamo Amo Mamo
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: