It would be nice if the clang-scanbuild plugin could be used outside of the XCode context. Indeed, scan-build can be used the following way:

      scan-build ./configure
      scan-build make

      thanks

          [JENKINS-14039] Scan-build can be used without xcode

          Grant Limberg added a comment -

          This would indeed be very helpful. I'd love to use the scan-build plugin in Jenkins, but my project is makefile based as well.

          Grant Limberg added a comment - This would indeed be very helpful. I'd love to use the scan-build plugin in Jenkins, but my project is makefile based as well.

          I agree this would be good.

          You can get it to work in a way. The publisher looks for reports in the folder clangScanBuildReports so you should make that the output folder for scan-build. e.g.:

          scan-build -o clangScanBuildReports make

          In practice it does not work well with multiple scan-build commands because it moves report files from the datestamped folder up a directory. Therefore you have to move the other html files up a directory too. e.g.:

          scan-build -o clangScanBuildReports ./configure
          scan-build -o clangScanBuildReports make
          mv clangScanBuildReports//report.html clangScanBuildReports

          Russell Gallop added a comment - I agree this would be good. You can get it to work in a way. The publisher looks for reports in the folder clangScanBuildReports so you should make that the output folder for scan-build. e.g.: scan-build -o clangScanBuildReports make In practice it does not work well with multiple scan-build commands because it moves report files from the datestamped folder up a directory. Therefore you have to move the other html files up a directory too. e.g.: scan-build -o clangScanBuildReports ./configure scan-build -o clangScanBuildReports make mv clangScanBuildReports/ /report .html clangScanBuildReports

          One more vote for Makefile support

          Liam Staskawicz added a comment - One more vote for Makefile support

          It is possible to create a job with Build step - Execute shell
          that invokes scan-build from the command-line, and have it work
          with the clang scan-build plugin. See the example listed at:

          https://wiki.jenkins-ci.org/display/JENKINS/Clang+Scan-Build+Plugin

          Craig Rodrigues added a comment - It is possible to create a job with Build step - Execute shell that invokes scan-build from the command-line, and have it work with the clang scan-build plugin. See the example listed at: https://wiki.jenkins-ci.org/display/JENKINS/Clang+Scan-Build+Plugin

            jkennedy1980 Josh Kennedy
            sylvestre Sylvestre Ledru
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: