1

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

Scott Stafford
  • 43,764
  • 28
  • 129
  • 177
  • What's the result if you change another agent pool for gated check-in? – Marina Liu Mar 31 '17 at 07:05
  • What do you mean? – Scott Stafford Apr 01 '17 at 03:18
  • 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 https://developercommunity.visualstudio.com/content/problem/23812/vsts-build-waiting-for-an-agent-to-be-requested-1.html, but before proven it's bug for TFS, we need to test for more conditions. – Marina Liu Apr 01 '17 at 12:30
  • 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 Apr 01 '17 at 14:09
  • Did you use the same agent or a new created? Please try to use a new created one. – Marina Liu Apr 03 '17 at 06:36
  • @Marina-MSFT We used a brand new agent.. – Scott Stafford Apr 03 '17 at 13:36
  • Can you share the screenshot of Agent pool with the agent you are using? And how did you restart the gated build? – Marina Liu Apr 04 '17 at 01:52

1 Answers1

0

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

Jaison Joy
  • 11
  • 2