1
votes

We are trying to use TFS 2015 Gated Builds. The trigger hooks in correctly, and the build gets created, but it never gets picked up by any agent. Non-gated builds start fine, and if we manually restart the gated build, that runs fine too. But the gated build (the important one), just sits there saying "Waiting for an agent to be requested" and "Waiting for an available agent":

enter image description here

No logs get created in the _diag folder for these builds.

EDIT: Added screncap of agent:

enter image description here

1
What's the result if you change another agent pool for gated check-in? - Marina Liu
What do you mean? - Scott Stafford
The message Waiting for an agent to be requested usually caused by TFSJobAgent service is stopped. But you can build manually it seems not caused by TFSJobAgent and it's weird. There had similar situation for VSTS developercommunity.visualstudio.com/content/problem/23812/…, but before proven it's bug for TFS, we need to test for more conditions. - Marina Liu
Yes, both services are started. Also, we tried moving to a new pool on the same computer as the main TFS build services but no change in behavior. - Scott Stafford
Did you use the same agent or a new created? Please try to use a new created one. - Marina Liu

1 Answers

0
votes

Check the table tbl_BuildAgent in TFS project collection database. Sometimes an agent entry may be causing this issue.