microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.42k stars 2.59k forks source link

Run functional test failed with runsettings specified #6185

Closed McMlok closed 6 years ago

McMlok commented 6 years ago

Environment

Issue Description

I try to run task Run functional tests with runsettings file specified. When I run task without file specified every thing works fine. When I specify runsettings file task crash with error unable to find ...runsettings file. But file is on test agent machine copied and user is allowed to access this file.

Error logs

2018-01-10T08:22:18.3199744Z ##[debug]Evaluating condition for step: 'Run Tests \Project.Web.*.Tests.dll on computer.domain.cz' 2018-01-10T08:22:18.3199744Z ##[debug]Evaluating: succeeded() 2018-01-10T08:22:18.3199744Z ##[debug]Evaluating succeeded: 2018-01-10T08:22:18.3199744Z ##[debug]=> (Boolean) True 2018-01-10T08:22:18.3199744Z ##[debug]Expanded: True 2018-01-10T08:22:18.3199744Z ##[debug]Result: True 2018-01-10T08:22:18.3199744Z ##[section]Starting: Run Tests *\Project.Web..Tests.dll on computer.domain.cz 2018-01-10T08:22:18.3199744Z ============================================================================== 2018-01-10T08:22:18.3199744Z Task : Run Functional Tests 2018-01-10T08:22:18.3199744Z Description : Run Coded UI/Selenium/Functional tests on a set of machines (using Test Agent) 2018-01-10T08:22:18.3199744Z Version : 1.0.52 2018-01-10T08:22:18.3199744Z Author : Microsoft Corporation 2018-01-10T08:22:18.3199744Z Help : More Information 2018-01-10T08:22:18.3199744Z ============================================================================== 2018-01-10T08:22:18.3355746Z Preparing task execution handler. 2018-01-10T08:22:18.5851778Z Executing the powershell script: d:\builds\agent1_tasks\RunVisualStudioTestsusingTestAgent_d353d6a2-e361-4a8f-8d8c-123bebb71028\1.0.52\RunDistributedTests.ps1 2018-01-10T08:22:18.5851778Z ##[debug]PowerShellHandler.Execute - AddCommand(d:\builds\agent1_tasks\RunVisualStudioTestsusingTestAgent_d353d6a2-e361-4a8f-8d8c-123bebb71028\1.0.52\RunDistributedTests.ps1) 2018-01-10T08:22:18.5851778Z ##[debug]PowerShellHandler.Execute - Add inputParameters 2018-01-10T08:22:18.5851778Z ##[debug]PowerShellHandler.Execute - AddParameter(testMachineGroup=computer.domain.cz) 2018-01-10T08:22:18.5851778Z ##[debug]PowerShellHandler.Execute - AddParameter(dropLocation=C:\App\Tests\Project) 2018-01-10T08:22:18.5851778Z ##[debug]PowerShellHandler.Execute - AddParameter(testSelection=testAssembly) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(testPlan=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(testSuite=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(testConfiguration=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(sourcefilters=\Project.Web.*.Tests.dll) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(testFilterCriteria=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(runSettingsFile=C:\App\Tests\Project\Solution Items\settings.runsettings) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(overrideRunParams=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(codeCoverageEnabled=false) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(customSlicingEnabled=false) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(testRunTitle=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(platform=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(configuration=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(testConfigurations=) 2018-01-10T08:22:18.6007780Z ##[debug]PowerShellHandler.Execute - AddParameter(autMachineGroup=) 2018-01-10T08:22:18.8815816Z ##[debug]PowerShellHandler.Execute - Invoke 2018-01-10T08:22:18.9283822Z ##[debug]Entering script RunDistributedTests.ps1 2018-01-10T08:22:18.9283822Z ##[debug]TestMachineGroup = computer.domain.cz 2018-01-10T08:22:18.9283822Z ##[debug]Test Drop Location = C:\App\Tests\Project 2018-01-10T08:22:18.9283822Z ##[debug]Source Filter = *\Project.Web..Tests.dll 2018-01-10T08:22:18.9283822Z ##[debug]Test Filter Criteria = 2018-01-10T08:22:18.9283822Z ##[debug]RunSettings File = C:\App\Tests\Project\Solution Items\settings.runsettings 2018-01-10T08:22:18.9283822Z ##[debug]Build Platform = 2018-01-10T08:22:18.9283822Z ##[debug]Build Configuration = 2018-01-10T08:22:18.9283822Z ##[debug]CodeCoverage Enabled = false 2018-01-10T08:22:18.9283822Z ##[debug]TestRun Parameters to override = 2018-01-10T08:22:18.9283822Z ##[debug]TestConfiguration = 2018-01-10T08:22:18.9283822Z ##[debug]Application Under Test Machine Group = 2018-01-10T08:22:18.9439824Z ##[debug]Loading module from path 'D:\Agents\Agent1\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.psd1'. 2018-01-10T08:22:18.9439824Z ##[debug]Loading module from path 'D:\Agents\Agent1\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.psm1'. 2018-01-10T08:22:18.9595826Z ##[debug]Loading module from path 'D:\Agents\Agent1\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.LegacySDK.dll'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Publish-TestResults'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Convert-String'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Remove-Environment'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-Environment'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-ProviderData'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'New-OperationLog'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Register-Environment'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Register-Provider'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Register-ProviderData'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Complete-Task'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Find-Files'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'. 2018-01-10T08:22:18.9751828Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'. 2018-01-10T08:22:18.9907830Z ##[debug]Exporting cmdlet 'Add-TaskIssue'. 2018-01-10T08:22:18.9907830Z ##[debug]Exporting cmdlet 'Complete-Task'. 2018-01-10T08:22:18.9907830Z ##[debug]Exporting cmdlet 'Find-Files'. 2018-01-10T08:22:18.9907830Z ##[debug]Exporting cmdlet 'Get-LocalizedString'. 2018-01-10T08:22:18.9907830Z ##[debug]Exporting cmdlet 'Set-TaskProgress'. 2018-01-10T08:22:18.9907830Z ##[debug]Exporting cmdlet 'Set-TaskVariable'. 2018-01-10T08:22:18.9907830Z ##[debug]Exporting cmdlet 'Write-TaskDetail'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Complete-Task'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Find-Files'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2018-01-10T08:22:18.9907830Z ##[debug]Loading module from path 'D:\Agents\Agent1\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.psd1'. 2018-01-10T08:22:18.9907830Z ##[debug]Loading module from path 'D:\Agents\Agent1\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.psm1'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Publish-TestResults'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Convert-String'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2018-01-10T08:22:18.9907830Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Remove-Environment'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-Environment'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-ProviderData'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'New-OperationLog'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Register-Environment'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Register-Provider'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Register-ProviderData'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Complete-Task'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Find-Files'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Add-BuildArtifactLink'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Add-BuildAttachment'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Convert-String'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Copy-BuildArtifact'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-JavaDevelopmentKitPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-MSBuildLocation'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-ServiceEndpoint'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-TaskVariable'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-TfsClientCredentials'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-ToolPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-VisualStudioPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-VssConnection'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Invoke-Ant'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Invoke-BatchScript'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Invoke-Maven'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Invoke-MSBuild'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Invoke-Tool'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Invoke-VSTest'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Publish-BuildArtifact'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Register-XamarinLicense'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Unregister-XamarinLicense'. 2018-01-10T08:22:19.0063832Z ##[debug]Exporting cmdlet 'Get-X509Certificate'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Convert-String'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2018-01-10T08:22:19.0063832Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2018-01-10T08:22:19.0219834Z ##[debug]Loading module from path 'D:\Agents\Agent1\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.DTA\Microsoft.TeamFoundation.DistributedTask.Task.DTA.psm1'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Publish-TestResults'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Convert-String'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Remove-Environment'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-Environment'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-ProviderData'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'New-OperationLog'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Register-Environment'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Register-Provider'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Register-ProviderData'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Complete-Task'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Find-Files'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'. 2018-01-10T08:22:19.0219834Z ##[debug]Exporting cmdlet 'Invoke-DeployTestAgent'. 2018-01-10T08:22:19.0219834Z ##[debug]Exporting cmdlet 'Invoke-RunDistributedTests'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2018-01-10T08:22:19.0219834Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2018-01-10T08:22:19.0219834Z ##[debug]Getting the connection object 2018-01-10T08:22:19.0219834Z ##[debug]Invoke - Get-VssConnection cmdlet 2018-01-10T08:22:19.0219834Z ##[debug]Get - SecretService and EndpointService from TaskContext 2018-01-10T08:22:19.0219834Z ##[debug]Fetched Endpoint:SystemVssConnection 2018-01-10T08:22:19.0375836Z ##[debug]AuthorizationType : OAuth 2018-01-10T08:22:19.5835906Z ##[debug]VssConnection created 2018-01-10T08:22:19.5835906Z ##[debug]UnregisterTestAgent script Path = 2018-01-10T08:22:19.5835906Z ##[debug]Calling Invoke-RunDistributedTests 2018-01-10T08:22:19.6615916Z ##[debug]Invoking Run Distributed Tests with Register Environment support 2018-01-10T08:22:19.7395926Z DistributedTests: Environment WinRm Protocol HTTPS. 2018-01-10T08:22:19.7551928Z ##[debug]DistributedTests: Release Uri: vstfs:///ReleaseManagement/Release/158 2018-01-10T08:22:19.7551928Z ##[debug]DistributedTests: ReleaseEnvironment Uri: vstfs:///ReleaseManagement/Environment/682 2018-01-10T08:22:19.7551928Z ##[debug]DistributedTests: Definition Name : Project release 2018-01-10T08:22:19.7551928Z ##[debug]DistributedTests: Build Name : Release-155 2018-01-10T08:22:19.7551928Z ##[debug]DistributedTests: Build Id : 41477 2018-01-10T08:22:19.7551928Z DistributedTests: Trying to unregister TestAgents from Test Machines 2018-01-10T08:22:19.7707930Z ##[debug]DistributedTests: UnRegisterTestAgent powershell script location : D:\builds\agent1_tasks\RunVisualStudioTestsusingTestAgent_d353d6a2-e361-4a8f-8d8c-123bebb71028\1.0.52\TestAgentUnRegistration.ps1 2018-01-10T08:22:19.8175936Z ##[debug]DistributedTests: Unconfiguring test agent on test machines. 2018-01-10T08:22:19.8175936Z ##[debug]DistributedTests: Total machines where task UnRegisterAgent needs to be run : 1 2018-01-10T08:22:19.8487940Z DistributedTests: Task 'UnRegisterAgent' on machine 'computer.domain.cz:5986' is being run 2018-01-10T08:22:24.1232488Z DistributedTests: Task 'UnRegisterAgent' on machine 'computer.domain.cz:5986' completed. 2018-01-10T08:22:24.1388490Z ##[debug]DistributedTests: Task 'UnRegisterAgent' for machine computer.domain.cz:5986's Status : Failed 2018-01-10T08:22:24.1388490Z ##[debug]DistributedTests: Task 'UnRegisterAgent' for machine computer.domain.cz:5986's service Log : RemoteDeployerSource Verbose: 10 : [RemoteDeployer]10:1:18:9:22:21:6612; 476, 4Creating public key for communication 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Verbose: 2 : [RemoteDeployer]10:1:18:9:22:21:6612; 476, 4Created public key for communication 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 12 : [RemoteDeployer]10:1:18:9:22:21:6768; 476, 4Deployment service - VisualStudioRemoteDeployere1857bdf-7b6b-42ca-a11b-7406c2282db0 is running... 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Verbose: 4 : [RemoteDeployer]10:1:18:9:22:22:6908; 476, 6Input file found 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Verbose: 5 : [RemoteDeployer]10:1:18:9:22:22:6908; 476, 6Reading input parameters 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Verbose: 6 : [RemoteDeployer]10:1:18:9:22:22:6908; 476, 6Finished reading input parameters 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Verbose: 7 : [RemoteDeployer]10:1:18:9:22:22:7376; 476, 6Executing specified action. ScriptNull= False,. AzureStorageNull: True 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1222012 : [RemoteDeployer]10:1:18:9:22:22:7376; 476, 6deploymentMachine.MachineName: localhost. 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1221727 : [RemoteDeployer]10:1:18:9:22:22:7532; 476, 6ApplicationPath: $env:SystemDrive\TestAgent 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1221740 : [RemoteDeployer]10:1:18:9:22:22:7532; 476, 4Establishing local powershell session on the machine 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1221740 : [RemoteDeployer]10:1:18:9:22:22:8936; 476, 4Finished establishing local powershell session on the machine 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1221661 : [RemoteDeployer]10:1:18:9:22:22:8936; 476, 4Starting Run Dsc on the machine:localhost, powershell port: 5986. 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1221666 : [RemoteDeployer]10:1:18:9:22:22:8936; 476, 4Executing commands to set execution policy and set global variables. 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1222014 : [RemoteDeployer]10:1:18:9:22:22:9404; 476, 4GetDeploymentScript:: applicationPath: C:\TestAgent 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1221667 : [RemoteDeployer]10:1:18:9:22:22:9404; 476, 4Machine:localhost Port:5986 => Creating Working Directory and setting it as the current directory. 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Information: 1221665 : [RemoteDeployer]10:1:18:9:22:22:9560; 476, 4Executing powershell script file. 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Verbose: 1221675 : [RemoteDeployer]10:1:18:9:22:23:0340; 476, 4Finished retrying 1 out of 3 times for exception: System.Management.Automation.RuntimeException: Unable to find TestAgent installation path ---> System.Management.Automation.RuntimeException: Unable to find TestAgent installation path 2018-01-10T08:22:24.1388490Z --- Konec trasování zásobníku pro vnitřní výjimku --- 2018-01-10T08:22:24.1388490Z v System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>cDisplayClass28_0.b0() 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>cDisplayClass19_0`1.b0() 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action) 2018-01-10T08:22:24.1388490Z RemoteDeployerSource Error: 1221741 : [RemoteDeployer]10:1:18:9:22:23:0340; 476, 4System.AggregateException: Failed to execute the powershell script. Consult the logs below for details of the error. 2018-01-10T08:22:24.1388490Z Unable to find TestAgent installation path ---> System.Management.Automation.RuntimeException: Unable to find TestAgent installation path ---> System.Management.Automation.RuntimeException: Unable to find TestAgent installation path 2018-01-10T08:22:24.1388490Z --- Konec trasování zásobníku pro vnitřní výjimku --- 2018-01-10T08:22:24.1388490Z v System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>cDisplayClass28_0.b0() 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>cDisplayClass19_0`1.b0() 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action) 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func1 action) 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference) 2018-01-10T08:22:24.1388490Z --- Konec trasování zásobníku pro vnitřní výjimku --- 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference) 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.ScriptExecutor.ExecuteScript(IPowerShell powerShell, String script, String arguments, Boolean isScriptDotSourced, Boolean useHttp) 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.RunPowerShellScripts(DeploymentMachineSpecification deploymentMachine, ScriptSpecification scriptSpecification, ScriptSpecification initializationScriptSpecification, String applicationPath, IPowerShell powerShellSession) 2018-01-10T08:22:24.1388490Z ---> (Inner Exception #0) System.Management.Automation.RuntimeException: Unable to find TestAgent installation path ---> System.Management.Automation.RuntimeException: Unable to find TestAgent installation path 2018-01-10T08:22:24.1388490Z --- Konec trasování zásobníku pro vnitřní výjimku --- 2018-01-10T08:22:24.1388490Z v System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) 2018-01-10T08:22:24.1388490Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>c__DisplayClass28_0.<Invoke>b__0() 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>c__DisplayClass19_01.b0() 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func1 action) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)<--- 2018-01-10T08:22:24.1544492Z 2018-01-10T08:22:24.1544492Z RemoteDeployerSource Information: 1221662 : [RemoteDeployer][10:1:18:9:22:23:0340; 476, 4](computer.domain.cz:5986-e1857bdf-7b6b-42ca-a11b-7406c2282db0)Cleaning temporary Mof Folder 2018-01-10T08:22:24.1544492Z RemoteDeployerSource Verbose: 1221778 : [RemoteDeployer][10:1:18:9:22:23:0496; 476, 4](computer.domain.cz:5986-e1857bdf-7b6b-42ca-a11b-7406c2282db0)Disposing the remote session 2018-01-10T08:22:24.1544492Z RemoteDeployerSource Verbose: 8 : [RemoteDeployer][10:1:18:9:22:23:0496; 476, 6](computer.domain.cz:5986-e1857bdf-7b6b-42ca-a11b-7406c2282db0)Completed specificed action. Result: Failed 2018-01-10T08:22:24.1544492Z 2018-01-10T08:22:24.1544492Z ##[warning]DistributedTests: Task 'UnRegisterAgent' for machine computer.domain.cz:5986's Error : System.Exception: Unable to find TestAgent installation path 2018-01-10T08:22:24.1544492Z ##[debug]Processed: ##vso[task.logissue type=warning]DistributedTests: Task 'UnRegisterAgent' for machine computer.domain.cz:5986's Error : System.Exception: Unable to find TestAgent installation path 2018-01-10T08:22:24.1544492Z ##[warning]DistributedTests: Task 'UnRegisterAgent' for machine computer.domain.cz:5986's Log : 2018-01-10T08:22:24.1544492Z ##[debug]Processed: ##vso[task.logissue type=warning]DistributedTests: Task 'UnRegisterAgent' for machine computer.domain.cz:5986's Log : 2018-01-10T08:22:24.1544492Z Deployment started on target machine... 2018-01-10T08:22:24.1544492Z 2018-01-10T08:22:24.1544492Z System.AggregateException: Failed to execute the powershell script. Consult the logs below for details of the error. 2018-01-10T08:22:24.1544492Z Unable to find TestAgent installation path ---> System.Management.Automation.RuntimeException: Unable to find TestAgent installation path ---> System.Management.Automation.RuntimeException: Unable to find TestAgent installation path 2018-01-10T08:22:24.1544492Z --- Konec trasování zásobníku pro vnitřní výjimku --- 2018-01-10T08:22:24.1544492Z v System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection`1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>cDisplayClass28_0.b0() 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>cDisplayClass19_01.<Execute>b__0() 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func1 action) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference) 2018-01-10T08:22:24.1544492Z --- Konec trasování zásobníku pro vnitřní výjimku --- 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.ScriptExecutor.ExecuteScript(IPowerShell powerShell, String script, String arguments, Boolean isScriptDotSourced, Boolean useHttp) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.DeploymentService.RunPowerShellScripts(DeploymentMachineSpecification deploymentMachine, ScriptSpecification scriptSpecification, ScriptSpecification initializationScriptSpecification, String applicationPath, IPowerShell powerShellSession) 2018-01-10T08:22:24.1544492Z ---> (Inner Exception #0) System.Management.Automation.RuntimeException: Unable to find TestAgent installation path ---> System.Management.Automation.RuntimeException: Unable to find TestAgent installation path 2018-01-10T08:22:24.1544492Z --- Konec trasování zásobníku pro vnitřní výjimku --- 2018-01-10T08:22:24.1544492Z v System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection1 output, PSInvocationSettings settings) 2018-01-10T08:22:24.1544492Z v System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.<>cDisplayClass28_0.b0() 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.<>cDisplayClass19_0`1.b0() 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute(Action action) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Utilities.RetryExecutor.Execute[T](Func1 action) 2018-01-10T08:22:24.1544492Z v Microsoft.VisualStudio.Services.DevTestLabs.RemoteDeployer.Deployment.PowershellExecutor.Invoke(String errorContextMessage, Boolean writeResultToLog, Boolean isCancellable, ActionPreference errorActionPreference)<--- 2018-01-10T08:22:24.1544492Z Trying to delete TestAgent configurations. 2018-01-10T08:22:24.1544492Z 2018-01-10T08:22:24.1544492Z 2018-01-10T08:22:24.1544492Z ##[warning]For troubleshooting, refer https://aka.ms/remotevstest. 2018-01-10T08:22:24.1544492Z ##[debug]Processed: ##vso[task.logissue type=warning]For troubleshooting, refer https://aka.ms/remotevstest. 2018-01-10T08:22:24.1544492Z ##[error]System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\App\Tests\Project\Solution Items\settings.runsettings'. 2018-01-10T08:22:24.1544492Z ##[debug]Processed: ##vso[task.logissue type=error;]System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\App\Tests\Project\Solution Items\settings.runsettings'. 2018-01-10T08:22:24.1544492Z at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 2018-01-10T08:22:24.1544492Z at System.IO.File.GetAttributes(String path) 2018-01-10T08:22:24.1544492Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.RunTests.QueueAndWaitForRunToComplete() 2018-01-10T08:22:24.1700494Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.RunTests.Run() 2018-01-10T08:22:24.1700494Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.TaskRunner.Run(Dictionary2 arguments, VssConnection connection, TaskType taskType) 2018-01-10T08:22:24.1700494Z at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.InvokeRundistributedTestsCmdLet.ProcessRecord() 2018-01-10T08:22:24.2324502Z ##[error]PowerShell script completed with 1 errors. 2018-01-10T08:22:24.2324502Z ##[section]Finishing: Run Tests *\Project.Web..Tests.dll on computer.domain.cz

snip_20180110095802 snip_20180110095907

McMlok commented 6 years ago

I solved it. It was my fault. Task look for run setting file on agent machine not on target machine. When I setup correct path for agent machine it works.