tfs - Configuring a TFS2015 build agent fails because agent pool not found. Why? -
when configuring build agent use of powershell script, provided on-site tfs2015, script errors out because cannot find agent pool on server. agent pool 'default' exists. on server same script works expected, , builds run. see script output below.
i have tried following:
- create new agent pool on server, , reference in script. same problem "agent pool not found".
- installed vs2015 minimal features.
- the user running script member of 'build administrators' , 'build service accounts' security groups.
what causing script fail on agent pool verification?
ps c:\windows\system32> e:\build\agent\configureagent.ps1
enter name agent (default agent-srv001): build002
enter url team foundation server (default ): http://[ip-address]:8080/tfs
configure agent against agent pool? (default pool name 'default'):
enter path of work folder agent (default 'e:\build\agent_work'): e:\build\work
install agent windows service (y/n) (default y): n
unconfigure existing agent (y/n) (default n; agent updated):
configuring agent unblocking files calling agent configure without /runningasservice calling agent configure without /force
unable find agent pool name: default
warning: configure agent failed, might fix problem configure /force.
try agent configure again parameter -force (y/n): y
calling agent configure without /runningasservice
calling agent configure /force
unable find agent pool name: default
e:\build\agent\configureagent.ps1 : configure agent failed. @ line:1 char:1
+ e:\build\agent\configureagent.ps1 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : notspecified: (:) [write-error], writeerrorexception + fullyqualifiederrorid : microsoft.powershell.commands.writeerrorexception,configureagent.ps1
as mentioned in comments, completeness i'm answering own question:
the user account running build process script, needs part of agent pool administrator accounts.
error message script misleading.
Comments
Post a Comment