No agent could be found with the following capabil

2019-05-02 05:22发布

问题:

When I try to queue a build on my on-premises TFS 2015 Update 1 I get the following error message:

No agent could be found with the following capabilities: grunt

I've already installed NodeJS and grunt-cli and they're in the path (i.e. they can be executed in cmd from any location).

What am I missing?

回答1:

Go to your pool settings page: http://SERV_NAME:8080/tfs/_admin/_AgentPool and select your agent, verify that grunt is added as a system capability with the correct path set. If it's not there, you can manually add it as a user capability

Something recalculates the system capabilities but I'm not sure what.