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

New MSBuild release has a space in the installation path; causes msbuild plugin to fail

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • msbuild-plugin
    • None
    • MSBuild 12.0 -- this is now distributed as a separate package, instead of being included with the dot-net framework
      Windows 2012
      Jenkins MSBuild Plugin 1.21

    Description

      The installation location for the new MSBuild release has a space in the path.

      If I put quotes around the path to MSBuild in system configuration ("C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe"), this error occurs:

      FATAL: "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" doesn't exist
      Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure

      Without quotes in the system configuration, but with a command-line parameter that includes quotes (/p:Platform="Mixed Platforms"), this happens:

      Path To MSBuild.exe: C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
      Executing the command cmd.exe /C "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "/p:Platform=Mixed Platforms" src/Build.proj && exit %%ERRORLEVEL%% from C:\jenkins\workspace\wintest
      [wintest] $ cmd.exe /C "C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe" "/p:Platform=Mixed Platforms" src/Build.proj && exit %%ERRORLEVEL%%
      'C:\Program' is not recognized as an internal or external command,
      operable program or batch file.
      Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure

      Attachments

        Activity

          cswarren cswarren created issue -
          gbois Gregory Boissinot made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 154562 ] JNJira + In-Review [ 194949 ]

          People

            kdsweeney kdsweeney
            cswarren cswarren
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: