TFS VSO build 2015 不显示控制台输出

TFS VSO build 2015 not showing console output

我在使用新的 TFS 版本时遇到问题。当我 运行 构建时,会出现控制台输出。

但是当构建完成后,consle 输出就会消失,并且无法查看构建过程中发生了什么。控制台输出完全丢失

在 VSOAgent 的日志中,我发现了以下错误。也许这与它有关。它说访问被拒绝,但用户在 TFS 服务器和代理服务器上都是管理员:

[a06a0975-b891-44ac-9010-a10717e0696c][33486819-a9aa-4d4d-953b-b3762b4d1071]Record: t=MavenBuild, n=E:\AgentJ7_1\_work\s\siena-parent\pom.xml, s=Initialized, st=06/01/2016 16:00:38, 0%, ft=, r=: 
16:00:38.406359 LogFileTimer_Callback - enter (79)
16:00:38.406359 LogFileTimer_Callback - processing job 467d364f-05e4-49c5-a3fd-0134d0889e4f
16:00:38.406359 LogFileTimer_Callback - found 1 records for job 467d364f-05e4-49c5-a3fd-0134d0889e4f
16:00:38.421999 ---------------------------------------------------------------------------
16:00:38.421999 System.AggregateException: One or more errors occurred. ---> Microsoft.TeamFoundation.DistributedTask.WebApi.TaskOrchestrationPlanSecurityException: Access denied: TFSSERVICE does not have write permissions for orchestration plan ccf1ea00-caec-4c73-9439-ee531f24eddc.
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()
16:00:38.421999    --- End of inner exception stack trace ---
16:00:38.421999    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
16:00:38.421999    at Microsoft.TeamFoundation.DistributedTask.Agent.JobWriter.UploadAttachment(Guid timelineId, Guid timelineRecordId, String type, String name, String path, Boolean deleteSource, TimelineRecord& attachmentUpdataRecord)
16:00:38.421999 ---> (Inner Exception #0) Microsoft.TeamFoundation.DistributedTask.WebApi.TaskOrchestrationPlanSecurityException: Access denied: TFSSERVICE does not have write permissions for orchestration plan ccf1ea00-caec-4c73-9439-ee531f24eddc.
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()<---
16:00:38.421999 
16:00:38.421999    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
16:00:38.421999    at Microsoft.TeamFoundation.DistributedTask.Agent.JobWriter.UploadAttachment(Guid timelineId, Guid timelineRecordId, String type, String name, String path, Boolean deleteSource, TimelineRecord& attachmentUpdataRecord)
16:00:38.421999 ---------------------------------------------------------------------------
16:00:38.421999 ---------------------------------------------------------------------------
16:00:38.421999 Microsoft.TeamFoundation.DistributedTask.WebApi.TaskOrchestrationPlanSecurityException: Access denied: TFSSERVICE does not have write permissions for orchestration plan ccf1ea00-caec-4c73-9439-ee531f24eddc.
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.421999 --- End of stack trace from previous location where exception was thrown ---
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.421999    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.421999    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()
16:00:38.421999 ---------------------------------------------------------------------------
16:00:38.421999 LogFileTimer_Callback - leave
16:00:38.562615 ConsoleTimer_Callback - enter (80)
16:00:38.562615 ConsoleTimer_Callback - Inside Lock
16:00:38.562615 ConsoleTimer_Callback - processing job 467d364f-05e4-49c5-a3fd-0134d0889e4f
16:00:38.562615 WriteConsoleLines - Appending 11 lines.
16:00:38.578227 WriteConsoleLines - Leaving method.
16:00:38.578227 ConsoleTimer_Callback - leave
16:00:38.906351 StatusTimer_Callback - enter (79)
16:00:38.906351 StatusTimer_Callback - processing job 467d364f-05e4-49c5-a3fd-0134d0889e4f
16:00:38.906351 StatusTimer_Callback - processing timeline a06a0975-b891-44ac-9010-a10717e0696c
16:00:38.921996 ---------------------------------------------------------------------------
16:00:38.921996 System.AggregateException: One or more errors occurred. ---> Microsoft.TeamFoundation.DistributedTask.WebApi.TaskOrchestrationPlanSecurityException: Access denied: TFSSERVICE does not have write permissions for orchestration plan ccf1ea00-caec-4c73-9439-ee531f24eddc.
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()
16:00:38.921996    --- End of inner exception stack trace ---
16:00:38.921996    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
16:00:38.921996    at Microsoft.TeamFoundation.DistributedTask.Agent.JobWriter.CreateTimeline(Guid newTimelineId)
16:00:38.921996    at Microsoft.TeamFoundation.DistributedTask.Agent.JobInfo.CreateTimeline(JobInfo info, TimelineInfo timeline)
16:00:38.921996    at Microsoft.TeamFoundation.DistributedTask.Agent.JobInfo.StatusTimer_Callback(Object state)
16:00:38.921996 ---> (Inner Exception #0) Microsoft.TeamFoundation.DistributedTask.WebApi.TaskOrchestrationPlanSecurityException: Access denied: TFSSERVICE does not have write permissions for orchestration plan ccf1ea00-caec-4c73-9439-ee531f24eddc.
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()<---
16:00:38.921996 
16:00:38.921996    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
16:00:38.921996    at Microsoft.TeamFoundation.DistributedTask.Agent.JobWriter.CreateTimeline(Guid newTimelineId)
16:00:38.921996    at Microsoft.TeamFoundation.DistributedTask.Agent.JobInfo.CreateTimeline(JobInfo info, TimelineInfo timeline)
16:00:38.921996    at Microsoft.TeamFoundation.DistributedTask.Agent.JobInfo.StatusTimer_Callback(Object state)
16:00:38.921996 ---------------------------------------------------------------------------
16:00:38.921996 ---------------------------------------------------------------------------
16:00:38.921996 Microsoft.TeamFoundation.DistributedTask.WebApi.TaskOrchestrationPlanSecurityException: Access denied: TFSSERVICE does not have write permissions for orchestration plan ccf1ea00-caec-4c73-9439-ee531f24eddc.
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__49.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__53`1.MoveNext()
16:00:38.921996 --- End of stack trace from previous location where exception was thrown ---
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
16:00:38.921996    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
16:00:38.921996    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__52`1.MoveNext()
16:00:38.921996 ---------------------------------------------------------------------------
16:00:38.921996 StatusTimer_Callback - leave
16:00:39.093881 ConsoleTimer_Callback - enter (80

您用于 运行 Build Agent 的帐户需要是 Build Agent Service Accounts 组的成员。管理员不是服务帐户。