Search code examples
tfstfsbuildtfs-2015vnext

TFS 2015 Update 3 Build Deploy TestAgent Task 'ConfigureTestAgent' Keeps Rebooting and Does Not Finish


I have a vNext build that is stuck at the step below. The VM (Windows 10) keeps being rebooted (even after the build is manually stopped). This agent needs to be configured as an "Interactive Process" (to run Selenium tests).

DistributedTests: Task 'ConfigureTestAgent' on machine 'DVDIP-W10-36.dev.jha:5985' is taking time. Please Wait

I see a lot of questions related to this problem that are unanswered. Can someone please help?

Thanks in advance.


Solution

  • When this happened to me and it was due to the fact there was a legal disclaimer that would appear prior to logging in that you had to click okay to dismiss.

    To fix this, we had that legal disclaimer disabled for that machine.

    UPDATE: Microsoft has addressed this in VSTS, TFS 2015.4, and TFS 2017.2 to cap the number of reboots at 3. See https://blogs.msdn.microsoft.com/devops/2017/07/03/deploy-visual-studio-test-agent-task-test-machine-rebooting-scenarios/