我最近從TFS2012遷移到運行TFS2013的全新硬件。我正在使用一個稍微定製的模板來構建並將我的解決方案部署到IIS。他們仍然在TFS2013上正常工作。現在我想使用新的模板「TfvcTemplate.12.xaml」,所以我設置了一個新的版本。當我試圖執行它,我得到這個錯誤:在從TFS2012遷移到TFS2013之後的新構建模板上出現錯誤
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),其是錯的。看起來遷移中仍然存在一些配置,指向以前的服務器。請記住,遷移的模板構建得很好。
任何想法?
你升級/配置,當你遷移新生成控制器?如果是這樣,你是否確保在創建構建時選擇了新的構建控制器? –
是的,我在新盒子上從零開始創建了一個構建控制器。我取消了註冊舊控制器(以便它不再顯示)並關閉舊服務器。我從頭創建了一個新的構建定義,使用TfvcTemplate.12.xaml模板,指向新的Controller。 – oscarmorasu