简体   繁体   English

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

[英]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: 如上所述:

  • Builds fine on local machine - even after clean/rebuild. 即使在清理/重建后,也可以在本地计算机上构建良好。 All other dev machines as well. 所有其他开发机器也是如此。
  • I'm using the default build template. 我正在使用默认的构建模板。 Actually this was a clone from another build that works just fine. 实际上,这是另一个版本的克隆,效果很好。
  • Logging (even on verbosity 'diagnostic' shows no occurrences of 'error' or 'failed' other than the message about the zipping the logs. 日志记录(即使是冗长的“诊断”,也只显示有关压缩日志的消息,没有显示“错误”或“失败”的情况)。

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: 谷歌搜索结果:

  • Upgrading VS on build server 在构建服务器上升级VS
  • Upgrading TFS build service on build server (will be done monday by ops) 升级构建服务器上的TFS构建服务(将在星期一由操作人员完成)

( 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

TFS构建错误消息

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM