TeamCity和Team Foundation Server 2012的构建步骤失败

时间:2013-10-04 13:12:52

标签: c# deployment tfs teamcity tfs2012

已更新图片。

在TeamCity中设置项目时,我无法使构建步骤生效。我得到了同样的结果 每次都出错。

  

无法启动MSBuild.exe。无法在路径中找到项目文件:C:\ TeamCity \ buildAgent \ work \ 42c94c0380966ffa \ Main \ Solution.sln

我能够连接到TFS。我把根放在下面。

$ /项目名/

测试连接返回ok。

创建构建步骤时,我使用MSBuild并将构建文件路径设置为tfs结构中解决方案所在的位置。例如。

构建文件路径:Main \ MySolution.sln

因为在TFS中这是解决方案的所在。 $ /项目名/主/ MySolution.sln。当我运行构建步骤时,我得到上面的错误。我究竟做错了什么? 42c94c0380966ffa文件夹在光盘上创建,但它是空的。

LOG

[14:55:24]Checking for changes
[14:55:25]Publishing internal artifacts
[14:55:25][Publishing internal artifacts] Sending build.start.properties.gz file
[14:55:25]Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[14:55:25]Checkout directory: C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:25]Updating sources: server side checkout
[14:55:25][Updating sources] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist
[14:55:25][Updating sources] Transferring cached clean patch for VCS root: EEL TFS
[14:55:25][Updating sources] Repository sources transferred
[14:55:25][Updating sources] Removing C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:25][Updating sources] Updating C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:25]Step 1/1: Build Solution (MSBuild) (2s)
[14:55:25][Step 1/1] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\TeamCity\buildAgent\work\42c94c0380966ffa /msbuildPath:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
[14:55:25][Step 1/1] in directory: C:\TeamCity\buildAgent\work\42c94c0380966ffa
[14:55:28][Step 1/1] Failed to start MSBuild.exe. Failed to find project file at path: C:\TeamCity\buildAgent\work\42c94c0380966ffa\Main\MySolution.sln
[14:55:28][Step 1/1] Process exited with code -42
[14:55:28][Step 1/1] Step Build Solution (MSBuild) failed
[14:55:28]Publishing internal artifacts
[14:55:28][Publishing internal artifacts] Sending build.finish.properties.gz file
[14:55:28]Build finished

我的VCS root配置,用户名和密码已删除。

http://imgur.com/IdsNEcr,Pb3qwAu#1

解决方案的位置。

http://imgur.com/IdsNEcr,Pb3qwAu#0

构建步骤

http://imgur.com/HOpBiV2

版本控制设置

http://imgur.com/oQMwI7L,boMqT8Z#1

常规设置

http://imgur.com/oQMwI7L,boMqT8Z#0

1 个答案:

答案 0 :(得分:0)

看起来你已经将你的构建配置为寻找MySolution.sln,但在TFS中它实际上称为EEL B2C.sln。