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

Failures not copied when path contains whitespaces

XMLWordPrintable

      The scan-build step fails to write to paths that contain spaces.

      From the build log:

      EXECUTING COMMAND:[/Volumes/Overmind HD/Jenkins/checker-264/scan-build, -k, -v, -v, -o, /Volumes/Overmind HD/Jenkins/Home/jobs/Project Example-Develop/workspace/clangScanBuildReports, xcodebuild, -target, ProjectExample, -configuration, Debug, -sdk, iphonesimulator, clean, build]
      [workspace] $ "/Volumes/Overmind HD/Jenkins/checker-264/scan-build" -k -v -v -o "/Volumes/Overmind HD/Jenkins/Home/jobs/Project Example-Develop/workspace/clangScanBuildReports" xcodebuild -target ProjectExample -configuration Debug -sdk iphonesimulator clean build
      scan-build: Emitting reports for this run to '/Volumes/Overmind HD/Jenkins/Home/jobs/Project Example-Develop/workspace/clangScanBuildReports/2012-05-23-1'.
      (...)
      scan-build: 0 bugs found.
      scan-build: The analyzer encountered problems on some source files.
      scan-build: Preprocessed versions of these sources were deposited in '/Volumes/Overmind HD/Jenkins/Home/jobs/Project Example-Develop/workspace/clangScanBuildReports/2012-05-23-1/failures'.
      scan-build: Please consider submitting a bug report using these files:
      scan-build:   http://clang-analyzer.llvm.org/filing_bugs.html
      

      Checking /Volumes after the build there is a file named "Overmind" containing various scan-build path error related messages, as in:

      usage: uname [-amnprsv]
      Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
      Target: x86_64-apple-darwin11.4.0
      Thread model: posix
      clang: error: no such file or directory: 'HD/Jenkins/Home/jobs/Project'
      clang: error: no such file or directory: 'Example-Develop/workspace/clangScanBuildReports/2012-05-23-1/failures/clang_other_error_khPht3.mi.info.txt'
      (...)
      

            jkennedy1980 Josh Kennedy
            lkraider Paul Eipper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: