2013-10-04 210 views
2

已更新,包含图像。TeamCity和Team Foundation Server 2012的构建步骤失败

在TeamCity中设置项目时,无法使构建步骤起作用。我每次都会收到相同的 错误。

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

我能够连接到TFS。在哪里我把根作为如下。

$/Projectname/

测试连接返回ok。

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

构建文件路径:主\ 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根配置,用户名和密码除去。

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

而且在解所在。

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

而构建步骤

http://imgur.com/HOpBiV2

版本控制设置

​​

常规设置

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

+0

如果没有代码被放入工作文件夹,您的VCS根配置是错误的。如果您发布它的屏幕截图(当然会模糊连接数据)会很有帮助。 –

+0

更新了整个设置的屏幕截图。 – jinxen

+0

请同时添加1.)VCS常规设置页面的屏幕截图(您发布了实际vcs根目录编辑屏幕的屏幕截图)和2.)源位置(从源代码管理资源管理器中截取的屏幕截图)。 –

回答

0

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

相关问题