Jenkins构建C#项目 0 Warning(s) 0 Error(s) 仍然失败

BladeSystem_Matrix 2019-03-28 04:30:53
使用Jenkins构建C#项目 解决所有的error后 还是失败了 显示 0 Warning(s) 0 Error(s)

Jenkins Console Output信息:
Path To MSBuild.exe: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
Executing the command cmd.exe /C C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /t:Build /p:Configuration=Release /p:WebProjectOutputDir=E:\MyJenkins\workspace\CTP_Portal-sonar\Output /p:OutputPath=E:\MyJenkins\workspace\CTP_Portal-sonar\Output\bin /p:VisualStudioVersion=14.0 /p:FrameworkPathOverride=C:\tools\fmsdk\v4.5 CTP_Portal.Admin/CTP_Portal.Admin.csproj && exit %%ERRORLEVEL%% from E:\MyJenkins\workspace\CTP_Portal-sonar
[CTP_Portal-sonar] $ cmd.exe /C C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe /t:Build /p:Configuration=Release /p:WebProjectOutputDir=E:\MyJenkins\workspace\CTP_Portal-sonar\Output /p:OutputPath=E:\MyJenkins\workspace\CTP_Portal-sonar\Output\bin /p:VisualStudioVersion=14.0 /p:FrameworkPathOverride=C:\tools\fmsdk\v4.5 CTP_Portal.Admin/CTP_Portal.Admin.csproj && exit %%ERRORLEVEL%%
Microsoft (R) Build Engine version 4.0.30319.36366
[Microsoft .NET Framework, version 4.0.30319.36470]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/28/2019 4:11:57 PM.

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

Time Elapsed 00:00:00.09
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
Finished: FAILURE
...全文
86 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
游北亮 2019-03-28
  • 打赏
  • 举报
回复
我的命令行是: cmd.exe /C "msbuild.exe /t:Rebuild /property:Configuration=Release;DebugType=pdbonly;DeployOnBuild=false;OutputPath=targets src/xxx.sln " && exit %%ERRORLEVEL%% 你可以参考一下,会不会是参数问题

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧