【发布时间】:2014-06-11 08:44:42
【问题描述】:
我为我们的一个解决方案创建了一个 CI 构建,它在我们的本地机器上构建良好,但在 TFS 上总是失败。
如前所述:
- 在本地机器上构建良好 - 即使在清理/重建之后。所有其他 开发机器也是如此。
- 我正在使用默认的构建模板。实际上,这是从另一个运行良好的构建中克隆出来的。
- 日志记录(即使在冗长的“诊断”中也没有显示“错误”或“失败”,除了有关压缩日志的消息。
TFS 版本为 2013。构建机器已更新为 VS2012v4。我不确定 TFS Build 服务版本,但我将在下周将其更新到最新版本。 (会是这样吗?)
有什么想法吗?
谷歌搜索结果:
- 在构建服务器上升级 VS
- 在构建时升级 TFS 构建服务 服务器(将由操作人员在星期一完成)
这里有完整的错误信息:
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