找不到具有以下功能的代理:grunt

No agent could be found with the following capabilities: grunt

当我尝试在本地 TFS 2015 Update 1 上对构建进行排队时,我收到以下错误消息:

No agent could be found with the following capabilities: grunt

我已经安装了 NodeJSgrunt-cli 并且它们在 path 中(即它们可以被执行在任何位置的 cmd 中)。

我错过了什么?

转到您的池设置页面:http://SERV_NAME:8080/tfs/_admin/_AgentPool 和 select 您的代理,验证是否已将 grunt 添加为具有正确路径集的系统功能。如果不存在,您可以手动将其添加为用户功能

有些东西重新计算了系统功能,但我不确定是什么。