问题
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":
No logs get created in the _diag folder for these builds.
EDIT: Added screncap of agent:
回答1:
Check the table tbl_BuildAgent in TFS project collection database. Sometimes an agent entry may be causing this issue.
来源:https://stackoverflow.com/questions/43126486/tfs-2015-vnext-gated-check-in-builds-are-waiting-for-an-agent-to-be-requested