Search code examples
tfsbuildagent

TFS 2017 does not assign build agents to build tasks


I think something in my TFS 2017 is locked. The builds will no longer be assigned to the build agents.

Build not starting: Build not starting

Agents available: Agents available

Information:
- TFS2017 running on Windows 10.
- Build agents running on same machine.
- SQLEXPRESS Database was full (10G cap), since then no more builds.
- I backed the database up and migrated to SQL Standard to solve the full database.

What I tried:
- Unconfigured the agents and reconfigured them.
- Deleted the default agent pool and got a new one, reconfigured the agents again.

Problem:
- Though two build agents are available, the builds are still not getting build.

Any suggestions, please?


Solution

  • I can reproduce this issue when stop the service "Visual Studio Team Foundation Background Job Agent"

    So, please check if the service "Visual Studio Team Foundation Background Job Agent" is running on TFS app tier.

    If it's not running, just start it.

    enter image description here