在满足指定要求的池 'some pool' 中找到 azure release pipeline:No 代理时出错:Agent.Version -gtVersion 2.155.1

Error on azure release pipeline:No agent found in pool 'some pool' which satisfies the specified demands: Agent.Version -gtVersion 2.155.1

我正在使用自托管部署代理、使用 azure 发布管道从 azure devops 进行部署。

部署池由一个部署代理 运行 在 windows 2019 年共享和提供服务。所有这些都适用于旧项目。

我创建了一个使用相同部署池的新项目。 当我向池提交新版本时出现错误:

No agent found in pool DEV Server Pool which satisfies the specified demands: Agent.Version -gtVersion 2.155.1 

我尝试从“组织设置”->“部署池”页面强制更新部署池,但代理没有升级。

我该如何解决这个问题?代理应该自行升级吗?

根据错误消息,您似乎使用的是自托管代理而不是部署组,请查看下图。 Demands 和功能旨在与自托管代理一起使用,以便可以将作业与满足作业要求的代理相匹配。如果不匹配,我们将收到错误消息:No agent found in pool {pool name} which satisfies the specified demands: {Demand}

我们也可以通过此page下载自托管代理(版本2.155.1),然后将代理安装在代理池DEV Server Pool下,它也可以工作。

我们也可以参考这个doc来更新自托管代理。