-
Bug
-
Resolution: Fixed
-
Major
-
Windows Server 2012-R2, Jenkins 2.138.2, MSBuild 1.29
MSbuild Setup:
Jenkinsfile snippet:
stage('Build') { steps { echo 'Building..' bat "\"${tool 'MSBuild'}\" ${SQLPROJ} /p:Configuration=Release /p:Platform=\"Any CPU\" /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}" } }
Console output:
{{D:\var\lib\jenkins\workspace\VisionPipeline>"c:\program files (x86)\msbuild\14.0\bin\" TBSM.Vision.Database\TBSM.Vision.Database\Vision.sqlproj /p:Configuration=Release /p:Platform="Any CPU" /p:ProductVersion=1.0.0.11
'"c:\program files (x86)\msbuild\14.0\bin\"' is not recognized as an internal or external command,
operable program or batch file.
??}}
Do I have to specify msbuild.exe in the tool specification, above (that works, btw)? Or, is there a better way?
Also, when will MSBuild be a first-class citizen in Pipeline (so we don't have to use bat to call it)