从TFS 2012迁移到TFS 2013后,新构建模板出错

时间:2013-12-11 21:50:47

标签: iis tfs migration tfs2013

我最近从TFS2012迁移到运行TFS2013的全新硬件。我使用了一个稍微定制的模板来构建我的解决方案并将其部署到IIS。他们仍然可以在TFS2013上正常工作。现在我想使用新模板“TfvcTemplate.12.xaml”,所以我设置了一个新版本。当我尝试执行它时,我收到此错误:

TF215097: An error occurred while initializing a build for build definition \MyProject\Build_Test: 
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: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.1.1.10:8080 (type SocketException)

Exception Stack Trace:    
    at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

IP地址“192.1.1.10”对应旧服务器(TFS2012),这是错误的。似乎迁移中仍然存在一些配置,指向前一个服务器。请记住,迁移的模板构建得很好。

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

  1. 重新安装Controller并在build-Definition
  2. 中重新选择它
  3. 请在“Build”下检查Visual Studio - > Actions \ ManageBuildControllers ...您的Controller可用
  4. 确保您的控制器设置在“队列新构建”-Action。
  5. 您可以尝试创建一个空工作流程(使用写入构建消息 - 活动)来检查与控制器的连接