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

Coverity Plugin Is Incompatible with MSBuild Plugin

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • coverity-plugin
    • Windows Server 2008, Java 1.6.0_43, Jenkins 1.517, Coverity Plugin 1.2.3, MSBuild Plugin 1.16

      Coverity works with MSBuild only when the user creates their own MSBuild script via a "Execute Windows batch command" build step and executes the following command:

      [Builds] $ C:\Coverity\CIC\static-analysis\bin\cov-build --dir C:\CoverityAnalyzeDir cmd /c call C:\Temp\hudson56334.bat

      However, if someone attempts to run Coverity with the MSBuild plugin which has environment variables in it, the following command gets executed and an error occurs:

      [JENKINS_COVERITY_TEST] $ C:\Coverity\CIC\static-analysis\bin\cov-build --dir C:\CoverityAnalyzeDir cmd.exe /C C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Clean;Build /nologo /p:Configuration=Release %BUILD_DIRECTORY%\Project.sln && EXIT %%ERRORLEVEL%%
      The filename, directory name, or volume label syntax is incorrect.

          [JENKINS-18551] Coverity Plugin Is Incompatible with MSBuild Plugin

          Chris Wozny created issue -
          Chris Wozny made changes -
          Link New: This issue depends on JENKINS-14833 [ JENKINS-14833 ]
          Chris Wozny made changes -
          Description Original: Coverity works with MSBuild only when the user creates their own MSBuild script via a "Execute Windows batch command" build step and executes the following command:

          [Builds] $ C:\Coverity\CIC\static-analysis\bin\cov-build --dir C:\CoverityAnalyzeDir cmd /c call C:\Temp\hudson56334.bat

          However, if someone attempts to run Coverity with the MSBuild plugin, the following command gets executed and an error occurs:

          [JENKINS_COVERITY_TEST] $ C:\Coverity\CIC\static-analysis\bin\cov-build --dir C:\CoverityAnalyzeDir cmd.exe /C C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Clean;Build /nologo /p:Configuration=Release %BUILD_DIRECTORY%\Project.sln && EXIT %%ERRORLEVEL%%
          The filename, directory name, or volume label syntax is incorrect.
          New: Coverity works with MSBuild only when the user creates their own MSBuild script via a "Execute Windows batch command" build step and executes the following command:

          [Builds] $ C:\Coverity\CIC\static-analysis\bin\cov-build --dir C:\CoverityAnalyzeDir cmd /c call C:\Temp\hudson56334.bat

          However, if someone attempts to run Coverity with the MSBuild plugin which has environment variables in it, the following command gets executed and an error occurs:

          [JENKINS_COVERITY_TEST] $ C:\Coverity\CIC\static-analysis\bin\cov-build --dir C:\CoverityAnalyzeDir cmd.exe /C C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /t:Clean;Build /nologo /p:Configuration=Release %BUILD_DIRECTORY%\Project.sln && EXIT %%ERRORLEVEL%%
          The filename, directory name, or volume label syntax is incorrect.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 149858 ] New: JNJira + In-Review [ 177497 ]
          Joel Briggs made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            cwozny Chris Wozny
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: