简体   繁体   English

从TFS2012迁移到TFS2013后新构建模板上的错误

[英]Error on new build template after migration from TFS2012 to TFS2013

I recently migrated from TFS2012 to a brand new hardware running TFS2013. 我最近从TFS2012迁移到运行TFS2013的全新硬件。 I was using a slightly customized template to build and deploy my solutions to IIS. 我使用的是稍微自定义的模板,以将我的解决方案构建并部署到IIS。 They still work ok on TFS2013. 他们仍然可以在TFS2013上正常工作。 Now I want to use the new template "TfvcTemplate.12.xaml" so I setup a new build. 现在,我想使用新模板“ TfvcTemplate.12.xaml”,所以我设置了一个新版本。 When I try to execute it I get this error: 当我尝试执行它时,出现以下错误:

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)

The exception is: 例外是:

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)

That IP address "192.1.1.10" corresponds to the old server (TFS2012), which is wrong. 该IP地址“ 192.1.1.10”对应于旧服务器(TFS2012),这是错误的。 It seems like there's still some configuration remaining from the migration, pointing to the previous server. 迁移后似乎还剩下一些配置,指向以前的服务器。 Keep in mind the migrated templates build just fine. 请记住,迁移的模板构建良好。

Any ideas? 有任何想法吗?

  1. Reinstall the Controller and Re-Select it in the build-Definition 重新安装控制器并在构建定义中重新选择它
  2. Please Check in Visual Studio under "Build" -->Actions\\ManageBuildControllers... that your Controller is available 请在Visual Studio的“构建”-> Actions \\ ManageBuildControllers ...下检查您的控制器是否可用
  3. Ensure that your Controller is set in the "Queue new build"-Action. 确保在“对新版本进行排队”-操作中设置了控制器。
  4. You can try to create an empty workflow (With a write to build Message - Activity) to check the connection to your Controller 您可以尝试创建一个空的工作流程(使用写操作构建消息-活动)以检查与Controller的连接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM