我是TeamCity的新手,试图让它第一次构建。我昨天安装了TeamCity Professional 8.1.4(build 30168)并建立了我的第一个TeamCity项目。
Visual Studio解决方案在GitHub上。这是一个非常简单的“Hello World"控制台应用。它在本地构建和运行。
当我向GitHub提交更改时,会触发TeamCity中的构建。因此,触发器可以工作。
构建配置包含一个步骤。这是MSBuild。构建文件路径为%env.BUILD_NUMBER%。 MSBuild版本是Microsoft .NET Framework 4.5,MSBuild ToolsVersion 4,运行平台x86。未指定.NET覆盖工具。这应该是一个简单的构建:获取最新并构建它。
以下是详细信息:
Failed to start MSBuild.exe. Failed to find project file at path: C:\TeamCity\buildAgent\work\3de96e708f2408e\2
这是构建日志,时间戳已删除:
TeamCity server version is 8.1.4 (build 30168)
Skip checking for changes - there are no VCS roots defined
Agent time zone: America/Chicago
Agent is running under JRE: 1.7.0_51-b13
Publishing internal artifacts
[Publishing internal artifacts] Sending using WebPublisher
[Publishing internal artifacts] Sending using ArtifactsCachePublisher
Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
Checkout directory: C:\TeamCity\buildAgent\work\3de96e708f2408e
Step 1/1: MSBuild
[Step 1/1] ##teamcity[buildStatisticValue key='buildStageDuration:firstStepPreparation' value='95.0']
[Step 1/1] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_4' value='0.0']
[Step 1/1] Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MsBuildBootstrap.exe /workdir:C:\TeamCity\buildAgent\work\3de96e708f2408e /msbuildPath:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
[Step 1/1] in directory: C:\TeamCity\buildAgent\work\3de96e708f2408e
[Step 1/1] Failed to start MSBuild.exe. Failed to find project file at path: C:\TeamCity\buildAgent\work\3de96e708f2408e\2
[Step 1/1] Process exited with code -42
[Step 1/1] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_4' value='792.0']
[Step 1/1] Step MSBuild failed
##teamcity[buildStatisticValue key='buildStageDuration:buildFinishing' value='5.0']
Publishing internal artifacts
[Publishing internal artifacts] Sending using WebPublisher
[Publishing internal artifacts] Sending using ArtifactsCachePublisher
##teamcity[buildStatisticValue key='buildStageDuration:artifactsPublishing' value='30.0']
Build finished
答案 0 :(得分:6)
错误说无法找到要构建的项目文件,它正在查看C:\TeamCity\buildAgent\work\3de96e708f2408e\2
可能你没有指定构建文件的路径。您需要在MSBuild Teamcity Step中进行以下设置。
路径应该相对于结帐目录。