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

时间:2016-01-06 16:24:52

标签: tfs tfsbuild tfs2015 azure-pipelines

我遇到了新TFS版本的问题。当我运行构建时,然后出现控制台输出。 enter image description here

但是当构建完成时,consle输出消失,并且无法看到构建期间发生了什么。控制台输出完全缺失 enter image description here

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

[a06a0975-b891-44ac-9010-a10717e0696c][33486819-a9aa-4d4d-953b-b3762b4d1071]Record: t=MavenBuild, n=E:\AgentJ7_1\_work\1\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

1 个答案:

答案 0 :(得分:1)

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