[英]TFS Build fails but 0 error(s), 0 warning(s)
I created a CI build for one of our solutions that builds fine on our local machines, but fails all the time on TFS. 我为其中一个解决方案创建了一个CI构建,该构建可以在我们的本地计算机上很好地构建,但是在TFS上一直失败。
As mentioned: 如上所述:
TFS Version is 2013. The build machine was updated to VS2012v4. TFS版本为2013。构建机器已更新为VS2012v4。 I'm not sure about TFS Build service version, but I'm having it updated to latest version next week.
我不确定TFS Build服务的版本,但下周将其更新为最新版本。 (Could that be it?)
(可以吗?)
Any ideas? 有任何想法吗?
Googling resulted in: 谷歌搜索结果:
( http://social.msdn.microsoft.com/Forums/vstudio/en-US/c0952875-10e8-4ae6-82a4-49af9db4a806/code-coverage-results-pending?forum=tfsbuild ) ( http://social.msdn.microsoft.com/Forums/vstudio/en-US/c0952875-10e8-4ae6-82a4-49af9db4a806/code-coverage-results-pending?forum=tfsbuild )
Full error message here: 完整的错误消息在这里:
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()<---
<---
You might have compatibility problems when using TFS 2013 and VS 2012. Microsoft have changed the way build executes. 使用TFS 2013和VS 2012时,您可能会遇到兼容性问题。Microsoft更改了生成的执行方式。 I had similar problem when everything worked well on local machine but failed when I tried to build project with TFS 2013.
当一切都在本地计算机上运行良好时,我遇到了类似的问题,但是当我尝试使用TFS 2013构建项目时却失败了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.