【问题标题】:TFS Build fails but 0 error(s), 0 warning(s)TFS 构建失败,但有 0 个错误,0 个警告
【发布时间】:2014-06-11 08:44:42
【问题描述】:

我为我们的一个解决方案创建了一个 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)

这里有完整的错误信息:

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()<---
<---

【问题讨论】:

  • 构建服务器上安装了哪个版本的 Visual Studio?您是否有任何单元测试项目作为解决方案的一部分,尤其是。 MSTest 和假货?
  • 我们正在构建服务器上运行 VS2012 更新 4,但我们正在运行旧版本的构建服务。我们现在正在升级所有内容,以遵循此处给出的建议:social.msdn.microsoft.com/Forums/vstudio/en-US/…。我们有一些测试,但我没有运行它们。

标签: .net tfs continuous-integration tfsbuild


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2017-12-31
    • 2020-05-07
    • 1970-01-01
    • 1970-01-01
    • 2015-11-27
    • 1970-01-01
    • 2016-12-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多