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

FATAL: "c:\program files (x86)\msbuild\14.0\bin\msbuild.exe" doesn't exist

    Details

    • Similar Issues:

      Description

      getting started with Jenkins. Learning as fast as I can! Trying to setup msbuild in the tools config. i have this:

      Then I have a job set up to do a build using an explicit setting and another using the msbuild from above:

      When I run this job, the first build works but the second one fails:

      {{D:\var\lib\jenkins\workspace\VisionTest>"c:\program files (x86)\msbuild\14.0\bin\msbuild.exe" TBSM.Vision.Database\TBSM.Vision.Database\TBSM.Vision.Database.sqlproj
      Microsoft (R) Build Engine version 14.0.25420.1
      Copyright (C) Microsoft Corporation. All rights reserved.

      Build started 2/27/2019 9:05:25 AM.
      Project "D:\var\lib\jenkins\workspace\VisionTest\TBSM.Vision.Database\TBSM.Vision.Database\TBSM.Vision.Database.sqlproj" on node 1 (default targets).
      GenerateSqlTargetFrameworkMoniker:
      Skipping target "GenerateSqlTargetFrameworkMoniker" because all output files are up-to-date with respect to the input files.
      CoreCompile:
      Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
      SqlBuild:
      Skipping target "SqlBuild" because all output files are up-to-date with respect to the input files.
      CopyFilesToOutputDirectory:
      TBSM.Vision.Database -> D:\var\lib\jenkins\workspace\VisionTest\TBSM.Vision.Database\TBSM.Vision.Database\bin\Debug\TBSM.Vision.Database.dll
      SqlPrepareForRun:
      TBSM.Vision.Database -> D:\var\lib\jenkins\workspace\VisionTest\TBSM.Vision.Database\TBSM.Vision.Database\bin\Debug\TBSM.Vision.Database.dacpac
      Done Building Project "D:\var\lib\jenkins\workspace\VisionTest\TBSM.Vision.Database\TBSM.Vision.Database\TBSM.Vision.Database.sqlproj" (default targets).

      Build succeeded.
      0 Warning(s)
      0 Error(s)

      Time Elapsed 00:00:04.35

      D:\var\lib\jenkins\workspace\VisionTest>exit 0
      FATAL: "c:\program files (x86)\msbuild\14.0\bin\msbuild.exe" doesn't exist
      Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
      Finished: FAILURE
       }}

      I figure its just me being a noob. Why does Jenkins find msbuild.exe in the first build step but not the second? What do I need to change?

      Cross posting from [https://stackoverflow.com/questions/54907441/jenkins-unable-to-find-msbuild/54921902#54921902|stackoverflow]

        Attachments

          Activity

          Hide
          gbritton Gerald Britton added a comment -

          I just confirmed that the directory is correct on both master and agent machines:

          Show
          gbritton Gerald Britton added a comment - I just confirmed that the directory is correct on both master and agent machines:
          Hide
          marshall777 Lionel Cabasson added a comment -

          Try removing the double quote when setting the msbuild path

          Show
          marshall777 Lionel Cabasson added a comment - Try removing the double quote when setting the msbuild path
          Hide
          gbritton Gerald Britton added a comment -

          that fixed it! I wonder though if the plugin could handle the quoted path as is, since that kind of thing is idiomatic in Windows?

          Show
          gbritton Gerald Britton added a comment - that fixed it! I wonder though if the plugin could handle the quoted path as is, since that kind of thing is idiomatic in Windows?

            People

            • Assignee:
              marshall777 Lionel Cabasson
              Reporter:
              gbritton Gerald Britton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: