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

cppcheck plugin missing files if used by a matrix project

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: cppcheck-plugin
    • Labels:
      None
    • Environment:
      debian linux lenny
      jenkins 1.400
      cppcheck 1.47

      Description

      Following message is displayed in the log file:
      ....
      [Cppcheck] Starting the cppcheck analysis.
      [Cppcheck] Processing 1 files with the pattern '**/*cppcheck.xml'.
      [Cppcheck] [WARNING] - The source file 'file:/hudson/jenkins/jenkins/jobs/xxxx/workspace/ARCH/i386/DEBUG/false/binsrc/yyyyyy.cpp' doesn't exist on the slave. The ability to display its source code has been removed.

      The result is, that the file has no link in the cppcheck results.

      The cause is, cppcheck reports the file with an relatve path, binsrc/xxxxx.cpp, but the plugin search the file in the wrong path.
      The local module directory should be added to the path if it exists (we use svn repository), it should look like
      file:/hudson/jenkins/jenkins/jobs/xxxx/workspace/ARCH/i386/DEBUG/false/xxxx/binsrc/yyyyyy.cpp.
      While xxxx is the local module directory, defined as optional scm subversion property.

        Activity

        wohauser wohauser created issue -
        wohauser wohauser made changes -
        Field Original Value New Value
        Description Following message is displayed in the log file:
        ....
        [Cppcheck] Starting the cppcheck analysis.
        [Cppcheck] Processing 1 files with the pattern '**/*cppcheck.xml'.
        [Cppcheck] [WARNING] - The source file 'file:/hudson/jenkins/jenkins/jobs/xxxx/workspace/ARCH/i386/DEBUG/false/binsrc/xxxxx.cpp' doesn't exist on the slave. The ability to display its source code has been removed.

        The result is, that the file has no link in the cppcheck results.

        The cause is, cppcheck reports the file with an relatve path, binsrc/xxxxx.cpp, but the plugin search the file in the wrong path.
        The local module directory should be added to the path if it exists (we use svn repository), it should look like
           file:/hudson/jenkins/jenkins/jobs/xxxx/workspace/ARCH/i386/DEBUG/false/xxxx/binsrc/xxxxx.cpp.
        While xxxx is the local module directory.
        Following message is displayed in the log file:
        ....
        [Cppcheck] Starting the cppcheck analysis.
        [Cppcheck] Processing 1 files with the pattern '**/*cppcheck.xml'.
        [Cppcheck] [WARNING] - The source file 'file:/hudson/jenkins/jenkins/jobs/xxxx/workspace/ARCH/i386/DEBUG/false/binsrc/yyyyyy.cpp' doesn't exist on the slave. The ability to display its source code has been removed.

        The result is, that the file has no link in the cppcheck results.

        The cause is, cppcheck reports the file with an relatve path, binsrc/xxxxx.cpp, but the plugin search the file in the wrong path.
        The local module directory should be added to the path if it exists (we use svn repository), it should look like
           file:/hudson/jenkins/jenkins/jobs/xxxx/workspace/ARCH/i386/DEBUG/false/xxxx/binsrc/yyyyyy.cpp.
        While xxxx is the local module directory, defined as optional scm subversion property.
        gbois Gregory Boissinot made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        mixalturek Michal Turek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            gbois Gregory Boissinot
            Reporter:
            wohauser wohauser
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: