简体   繁体   English

TFS构建/发布代理“更新所有代理”并未更新2017年TFS内部代理

[英]TFS build/release agents “update all agents” is not updating the agents for TFS on-prem 2017

For on-prem TFS 2017 when I try to update all agents in the agent pools, the update does not happen. 对于2017年本地TFS,当我尝试更新代理池中的所有代理时,更新不会发生。 I see the same old agent version. 我看到了相同的旧代理版本。

Build servers typically do not have internet connectivity. 构建服务器通常没有Internet连接。

Is internet connectivity a pre-requisite for updating on prem build agents? 互联网连接是更新前置构建代理的先决条件吗?

I had to download the new agent for a machine where I have internet and then copied the files over to a new folder in the build machine and reconfigured the agent from this new folder. 我必须为我有互联网的机器下载新代理,然后将文件复制到构建机器中的新文件夹,并从这个新文件夹重新配置代理。 After this is done I had 2 agent services - 1 pointing to older folder and 1 pointing to new folder. 完成此操作后,我有2个代理服务 - 1指向旧文件夹,1指向新文件夹。 The service pointing to old folder was started and the new service was in stopped state. 启动了指向旧文件夹的服务,新服务处于停止状态。 Stopped the old service and started the new service. 停止旧服务并启动新服务。

Is the process different for updating agent version for on-prem TFS? 对于更新本地TFS的代理版本,该过程是否不同?

Even if you have Internet connection, the update may not work. 即使您有Internet连接,更新也可能无效。

According to Daniel Steiner there are 2 kinds of agents: 根据丹尼尔施泰纳的说法,有两种代理人:

  • Windows specific agents (version 1.x) Windows特定代理(版本1.x)
  • cross platform agents (version 2.x) 跨平台代理(版本2.x)

In TFS 2017 the Windows specific agents (version 1.x) are deprecated. 在TFS 2017中,不推荐使用Windows特定代理(版本1.x)。 Thus they won't be updated from the agent queues admin area. 因此,它们不会从代理队列管理区域更新。 So you have to download the agent from tfs (or github ) and install it yourself. 所以你必须从tfs(或github )下载代理并自己安装。 After initial installation/configuration the agent updates via tfs should work again. 初始安装/配置后,通过tfs更新代理应该再次工作。 It would have been cool if they automated that process or at least said what to do in tfs. 如果他们自动化该过程或者至少说明在tfs中做什么,那将会很酷。

Unfortunately the official docu does not make the whole issue clear enough. 不幸的是, 官方文件并没有使整个问题足够清楚。

Yes you need internet connectivity for updating on prem build agents. 是的,您需要互联网连接才能更新前置构建代理。

Each agent automatically updates itself when it runs a task that requires a newer version of the agent. 每个代理在运行需要更新版本代理的任务时自动更新。 But if you want to manually update some agents, right-click the pool, and then click Update all agents. 但是,如果要手动更新某些代理,请右键单击该池,然后单击“更新所有代理”。

All build agents within the selected pool will go offline temporarily and then come back online as soon as they are updated. 所选池中的所有构建代理将暂时脱机,然后在更新后立即返回联机状态。

Which you have done is manually adding a newly version agent, not updating the agent. 您所做的是手动添加新版本代理,而不是更新代理。 There are just two agents in your build server,so you had two agent services. 构建服务器中只有两个代理,因此您有两个代理服务。

More details about update agent in on-premise TFS server, you could refer below tutorials: 有关内部部署TFS服务器中更新代理的更多详细信息,请参阅以下教程:

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

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