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

Can't read file: Can't access the file

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          Hide
          powerlands 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.

          Show
          powerlands 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.
          Hide
          smuppala Supraja Muppala added a comment -

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

          Show
          smuppala Supraja Muppala added a comment - Workaround I have achieved is by using custom workspace. With this I was able to access files
          Hide
          yyllssm li hechao added a comment -

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

          Show
          yyllssm li hechao added a comment - i use custom workspace, but it can not work Supraja Muppala , just only do that? 
          Hide
          smuppala 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

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

          Show
          smuppala 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 ==============================
          Hide
          floatice ice zeng added a comment -
          Show
          floatice 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/

            People

            • Assignee:
              marcosteffan Marco Steffan
              Reporter:
              mamoamo Amo Mamo
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: