I am having some trouble running a build definition on TFS 2015 (I'm working on-prem). I have the same setup on a different project (on a different Collection) and it is working there. Searching for any differences doesn't help finding the error or a solution.
In the build definition I have the 3 steps needed to deploy the testagent to a Test Machine Group:
- Visual Studio Test Agent Deployment
- Windows Machine File Copy
- Visual Studio Test using Test Agent
A Test Machine Group is configured, all selections are set to "Select Machines By Machine Names" and the Filter Criteria are left empty.
The first 2 steps run correct, in the third step I keep getting this error message: "No matching test machines found in machine group. Check the machine filters provided in the task and ensure that DeployTestAgent task was added prior to this task and it had passed."
Not a very helpfull message if the filter is empty. Even in the logs, there are no clues:
2016-03-01T10:30:29.6282513Z Executing the powershell script: C:\TfsBuildAgents\VsoBuildAgent\tasks\RunVisualStudioTestsusingTestAgent\1.0.10\RunDistributedTests.ps1
2016-03-01T10:30:30.1449123Z ##[warning]For troubleshooting, refer http://aka.ms/remotevstest.
2016-03-01T10:30:30.1449123Z ##[error]No matching test machines found in machine group. Check the machine filters provided in the task and ensure that DeployTestAgent task was added prior to this task and it had passed.
By known I've even checked the capabilities of the Agent queue, but cannot find the setting that is causing this.
Any help or things to check?