我一直在努力让Team Foundation Server工作几天。
我花了很多年时间试图弄清楚如何在自己的计算机上工作,却发现在新机器上安装它可以解答为什么我无法连接的基本问题。
现在我已经连接了git repo,定义了构建过程,从visual studio我能够执行" Queue Build"命令 - 但每次都会出现以下错误(虽然我花了几天时间才能做到这一点)
TF215097: An error occurred while initializing a build for build definition \MyProject:
Exception Message: One or more errors occurred. (type AggregateException)
Exception Stack Trace: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFile(TfsTeamProjectCollection projectCollection, String itemPath, Stream outputStream)
at Microsoft.TeamFoundation.Build.Client.FileContainerHelper.GetFileAsString(TfsTeamProjectCollection projectCollection, String itemPath)
at Microsoft.TeamFoundation.Build.Client.ProcessTemplate.Download(String sourceGetVersion)
at Microsoft.TeamFoundation.Build.Hosting.BuildControllerWorkflowManager.PrepareRequestForBuild(WorkflowManagerActivity activity, IBuildDetail build, WorkflowRequest request, IDictionary`2 dataContext)
at Microsoft.TeamFoundation.Build.Hosting.BuildWorkflowManager.TryStartWorkflow(WorkflowRequest request, WorkflowManagerActivity activity, BuildWorkflowInstance& workflowInstance, Exception& error, Boolean& syncLockTaken)
Inner Exception Details:
Exception Message: VS30063: You are not authorized to access http://tfs.myserver.com. (type VssUnauthorizedException)
Exception Stack Trace: at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.<SendAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.VssHttpRetryMessageHandler.<SendAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Microsoft.VisualStudio.Services.WebApi.HttpClientExtensions.<DownloadFileFromTfsAsync>d__2.MoveNext()
如果我关注&#34;内部异常&#34;我确实可以看到TFS连接似乎存在问题
TFS默认安装位于路径http://tfs.myserver.com/tfs
但是,当团队基础服务器配置为允许在localhost上进行自我通信时,此构建过程似乎尝试使用自己的外部URL连接到构建计算机。
有没有人有确保构建过程能够在Team Foundation Server上实际构建的经验?
这是2012年服务器上的TFS 2013 Express。
答案 0 :(得分:1)
&#34;您可以从构建定义下载默认的TfsTemplate.12.xaml到本地文件夹吗?如果是,请尝试以下步骤: