我使用Jenkins版本1.500。我只是想构建我的asp.net项目,但是我收到了这条消息:
Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSbuild.exe
Executing the command cmd.exe /C C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSbuild.exe %WORKSPACE%\trunk\src\GoldFingers.Uk.sln && exit %%ERRORLEVEL%% from C:\Program Files (x86)\Jenkins\jobs\GoldFingers-Build\workspace
[workspace] $ cmd.exe /C C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSbuild.exe %WORKSPACE%\trunk\src\GoldFingers.Uk.sln && exit %%ERRORLEVEL%%
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
MSBUILD : error MSB1008: Only one project can be specified.
Switch: Files
For switch syntax, type "MSBuild /help"
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
Finished: FAILURE
你知道为什么失败吗?也许旧版本詹金斯? 请帮忙。
答案 0 :(得分:1)
似乎因为你的%WORKSPACE%
值中有空格(C:\Program Files (x86)\Jenkins\jobs\GoldFingers-Build\workspace
),它会将其分为2个参数。
您需要将Job的工作区移动到其中没有空格的位置。您可以执行以下任一操作:
或,更新 MSBuild Plugin
根据插件维基页面,版本1.19 修复:
传递包含空格的发布配置