TFS构建失败,但0错误,0警告

时间:2014-04-25 14:53:16

标签: .net tfs continuous-integration tfsbuild tfs2013

我为我们的一个解决方案创建了一个CI构建,这个解决方案在我们的本地机器上构建得很好,但是在TFS上一直都没有。

如上所述:

  • 在本地计算机上构建良好 - 即使在清理/重建之后也是如此。所有其他 开发机器也是如此。
  • 我使用默认的构建模板。实际上这是另一个版本的克隆,工作得很好。
  • 记录(即使是详细程度'诊断'显示没有出现'错误'或者'除了有关压缩日志的消息之外。

TFS版本是2013.构建机器已更新为VS2012v4。我不确定TFS Build服务版本,但我已经将它更新到下周的最新版本。 (可能是吗?)

有什么想法吗?

谷歌搜索导致:

  • 在构建服务器上升级VS
  • 在构建时升级TFS构建服务 服务器(将由运营商星期一完成)

http://social.msdn.microsoft.com/Forums/vstudio/en-US/c0952875-10e8-4ae6-82a4-49af9db4a806/code-coverage-results-pending?forum=tfsbuild

TFS build error message

此处有完整的错误消息:

Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
 No zip file of logs was created because the archive operation failed: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
   at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader)
   at Newtonsoft.Json.Linq.JArray.Parse(String json)
   at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.<ArchiveLogs>d__5.MoveNext()
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.End(IAsyncResult result)
   at Microsoft.TeamFoundation.Build.Hosting.OperationInvokerPool.EndInvoke(IAsyncResult result)
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
   at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader)
   at Newtonsoft.Json.Linq.JArray.Parse(String json)
   at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.<ArchiveLogs>d__5.MoveNext()
   --- End of inner exception stack trace ---
---> (Inner Exception #0) Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.
   at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader)
   at Newtonsoft.Json.Linq.JArray.Parse(String json)
   at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.ArchiveLogsInvoker.<ArchiveLogs>d__5.MoveNext()<---
<---

1 个答案:

答案 0 :(得分:0)

使用TFS 2013和VS 2012时可能存在兼容性问题.Microsoft已更改构建执行的方式。当一切都在本地机器上运行良好但我尝试使用TFS 2013构建项目时失败了,我遇到了类似的问题。