As far I started create execute tests UI in VNext build definition.
But after reboot VM I caught error:
DistributedTests: Task 'CopyFilesToTestAgent' for machine ***.com:5985's Error : System.ArgumentException: Unable to resolve path $env:SystemDrive\TestAgent. Connecting to remote server ***.com failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic. ---> System.AggregateException: One or more errors occurred. ---> System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server ***.com failed with the following error message : WinRM cannot complete the operation. Verify that the specified...at System.Management.Automation.Runspaces.AsyncResult.EndInvoke() at System.Management.Automation.RemoteRunspace.Open() at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.GetOpenedRunspace() at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.EstablishRemoteSession() at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.RetryExecutor.Execute(Action action) at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.<Initialize>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.<Initialize>d__23.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.ResolveTargetEnvironmentVariable(DeploymentMachineSpecification machineSpecs, String environmentVariableName)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.GetUriForTargetPathWithEnvironmentVariable(DeploymentMachineSpecification machineSpecs, String pathWithEnvironmentVariable)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.GetUriForStringPathForMachine(String stringPath, DeploymentMachineSpecification machineSpec)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.GetUriForStringPathForMachine(String stringPath, DeploymentMachineSpecification machineSpec)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.RoboCopyHelper.<DoCopyAsync>d__5.MoveNext()
DistributedTests: Task 'CopyFilesToTestAgent' for machine ***.com:5985's Log : System.ArgumentException: Unable to resolve path $env:SystemDrive\TestAgent. Connecting to remote server ***.com failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic. ---> System.AggregateException: One or more errors occurred. ---> System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server ***.com failed with the following error message : WinRM cannot complete the operation. Verify that the specified c...
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.RemoteRunspace.Open()
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.GetOpenedRunspace()
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.EstablishRemoteSession()
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.RetryExecutor.Execute(Action action)
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.<Initialize>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.<Initialize>d__23.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.ResolveTargetEnvironmentVariable(DeploymentMachineSpecification machineSpecs, String environmentVariableName)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.GetUriForTargetPathWithEnvironmentVariable(DeploymentMachineSpecification machineSpecs, String pathWithEnvironmentVariable)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.GetUriForStringPathForMachine(String stringPath, DeploymentMachineSpecification machineSpec)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.UNCPathBasedLocationExtension.GetUriForStringPathForMachine(String stringPath, DeploymentMachineSpecification machineSpec)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.RoboCopyHelper.<DoCopyAsync>d__5.MoveNext()
So. To fix it run as admin powershell and execute on test agent and build agent:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force
No comments:
Post a Comment