在构建代理上重新配置构建代理服务可解决问题。
以下脚本只是使用所有现有配置的值在构建代理上重新运行的PowerShell构建代理脚本的转储(替换名称)。我只是按了为每一个输入。一旦代理被重新配置,排队的版本再次开始工作。
PS C:\TEMP> .\ConfigureAgent.cmd
An existing configuration file was detected. This will update the local agent settings. Do you want to also replace th
e server registration (default is N)?
Enter the name for this agent (default is Agent-AGENTCMP01)
Enter the URL for the Team Foundation Server (default is http://mytfs.mycompany.com:8080/tfs/)
Configure this agent against which agent pool? (default pool name is 'My Pool')
Enter the path of the work folder for this agent (default is 'C:\TEMP\_work')
Would you like to install the agent as a Windows Service (Y/N) (default is Y)
Enter the name of the user account to use for the service (default is MYDOMAIN\MYACCT)
Removing EventLog source vsoagent.mytfs.Agent-AGENTCMP01.
Service vsoagent.mytfs.Agent-AGENTCMP01 is being removed from the system...
Service vsoagent.mytfs.Agent-AGENTCMP01 was successfully removed from the system.
Installing service vsoagent.mytfs.Agent-AGENTCMP01...
Service vsoagent.mytfs.Agent-AGENTCMP01 has been successfully installed.
Creating EventLog source vsoagent.mytfs.Agent-AGENTCMP01 in log Application...
Configuration successful.
PS C:\TEMP>
我不得不重新指定一些我的参数,而不是接受默认值,但这样排序我的问题,谢谢。 – Mike
@Mike很高兴帮助某人! – CJBS