vnext

TFS 2017 (on premise) vNext Build stuck with status 'cancelling'


I have configured a build server for TFS 2017 and vNext build for my web application. This was working fine until yesterday. Suddenly I started getting the message "Waiting for an available agent" when I try to queue the build. Even if I hit cancel, the build is stuck with the status 'cancelling'.

vNext build issue

Has anyone faced / solved similar issue?


Solution

  • Just try below things to narrow down the issue:


    UPDATE:

    Based on your clarification, seems it's caused by "Visual studio Team Foundation backgroud job Agent" service.

    Generally deploy new agent will work, if it's not working, then it more likely to be the service problem. So just try to restart the "Visual studio Team Foundation backgroud job Agent" service (try this several times).

    If that still not work, just try to change another vailable account for the Agent service. Then try it again.

    enter image description here