jessehouwing / azure-pipelines-tfvc-tasks

Azure Pipelines tasks for Team Foundation Version Control
https://marketplace.visualstudio.com/items?itemName=jessehouwing.jessehouwing-vsts-tfvc-tasks
MIT License
27 stars 18 forks source link

Cannot bind argument to parameter 'Name' because it is null #55

Closed RoyRosenberg closed 5 years ago

RoyRosenberg commented 6 years ago

Hi, I'm using checkin task during a build. use VSTS and a LOCAL build agent in my organization sometimes I get this error 2017-11-12T11:52:43.0851916Z ##[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Name' because it is null.

here's the full log: 2017-11-12T11:52:41.1271911Z ##[debug]Evaluating condition for step: 'Check changes into source control' 2017-11-12T11:52:41.1271911Z ##[debug]Evaluating: succeeded() 2017-11-12T11:52:41.1271911Z ##[debug]Evaluating succeeded: 2017-11-12T11:52:41.1271911Z ##[debug]=> (Boolean) True 2017-11-12T11:52:41.1271911Z ##[debug]Expanded: True 2017-11-12T11:52:41.1271911Z ##[debug]Result: True 2017-11-12T11:52:41.1281907Z ##[section]Starting: Check changes into source control 2017-11-12T11:52:41.1281907Z ============================================================================== 2017-11-12T11:52:41.1281907Z Task : TFVC - Check-in changes 2017-11-12T11:52:41.1281907Z Description : Checks in any files changed in the repository. 2017-11-12T11:52:41.1281907Z Version : 1.2.4 2017-11-12T11:52:41.1281907Z Author : Jesse Houwing 2017-11-12T11:52:41.1281907Z Help : Version: 1.2.4. More Information 2017-11-12T11:52:41.1281907Z ============================================================================== 2017-11-12T11:52:41.1421914Z Preparing task execution handler. 2017-11-12T11:52:42.0871928Z Executing the powershell script: C:\agent_work_tasks\TFVCCheckin_31f040e5-e040-4556-878a-59a47c7128bd\1.2.4\TfvcCheckin.ps1 2017-11-12T11:52:42.0981926Z ##[debug]PowerShellHandler.Execute - AddCommand(C:\agent_work_tasks\TFVCCheckin_31f040e5-e040-4556-878a-59a47c7128bd\1.2.4\TfvcCheckin.ps1) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - Add inputParameters 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(ConfirmUnderstand=true) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(IncludeNoCIComment=true) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(BypassGatedCheckin=false) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(autoDetectAdds=false) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(autoDetectDeletes=false) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(OverridePolicy=false) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(OverridePolicyReason=) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(ItemSpec=$/TeamWork/Oracle/Versions/V7.1.2/Source/TeamWork/SolutionInfo.cs;$/TeamWork/Framework/Versions/V7.1.2/Source/CommonFramework/SolutionInfo.cs;$/TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/SolutionInfo.cs;$/TeamWork/Tools/Versions/V7.1.2/Source/RM/SolutionInfo.cs;$/TeamWork/Tools/Versions/V7.1.2/Source/twcmd_client/src/META-INF/MANIFEST.MF;$/TeamWork/Oracle/Versions/V7.1.2/Source/TeamWork/Sync_Framework_Bin.bat;$/TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/SyncWithFrameworkBin.bat;$/TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/UpdateFrameworkBin.bat;$/TeamWork/Tools/Versions/V7.1.2/Source/twcmd_client/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionHelp/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionSDK/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/DeployBundle/META-INF/bundle.xml;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/src/META-INF/extension.xml;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/src/META-INF/MANIFEST.MF) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(Notes=) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(Recursion=None) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(Comment=) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(SkipGated=true) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(SkipShelveset=true) 2017-11-12T11:52:42.3791926Z ##[debug]PowerShellHandler.Execute - Invoke 2017-11-12T11:52:42.5111927Z ##[debug]Entering script TfvcCheckin.ps1 2017-11-12T11:52:42.5111927Z ##[debug]Parameter Values 2017-11-12T11:52:42.5621923Z ##[debug]ConfirmUnderstand = true 2017-11-12T11:52:42.5621923Z ##[debug]IncludeNoCIComment = true 2017-11-12T11:52:42.5631932Z ##[debug]BypassGatedCheckin = false 2017-11-12T11:52:42.5631932Z ##[debug]AutoDetectAdds = false 2017-11-12T11:52:42.5631932Z ##[debug]AutoDetectDeletes = false 2017-11-12T11:52:42.5641931Z ##[debug]OverridePolicy = false 2017-11-12T11:52:42.5641931Z ##[debug]OverridePolicyReason = 2017-11-12T11:52:42.5651928Z ##[debug]Itemspec = $/TeamWork/Oracle/Versions/V7.1.2/Source/TeamWork/SolutionInfo.cs;$/TeamWork/Framework/Versions/V7.1.2/Source/CommonFramework/SolutionInfo.cs;$/TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/SolutionInfo.cs;$/TeamWork/Tools/Versions/V7.1.2/Source/RM/SolutionInfo.cs;$/TeamWork/Tools/Versions/V7.1.2/Source/twcmd_client/src/META-INF/MANIFEST.MF;$/TeamWork/Oracle/Versions/V7.1.2/Source/TeamWork/Sync_Framework_Bin.bat;$/TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/SyncWithFrameworkBin.bat;$/TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/UpdateFrameworkBin.bat;$/TeamWork/Tools/Versions/V7.1.2/Source/twcmd_client/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionHelp/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionSDK/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/DeployBundle/META-INF/bundle.xml;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/src/META-INF/extension.xml;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/src/META-INF/MANIFEST.MF 2017-11-12T11:52:42.5651928Z ##[debug]Notes = 2017-11-12T11:52:42.5651928Z ##[debug]Recursion = None 2017-11-12T11:52:42.5661925Z ##[debug]Comment = 2017-11-12T11:52:42.5661925Z ##[debug]SkipGated = true 2017-11-12T11:52:42.5661925Z ##[debug]SkipShelveset = true 2017-11-12T11:52:42.5661925Z ##[debug]Importing modules 2017-11-12T11:52:42.5751929Z ##[debug]Loading module from path 'C:\agent_work_tasks\TFVCCheckin_31f040e5-e040-4556-878a-59a47c7128bd\1.2.4\vsts-tfvc-shared.psm1'. 2017-11-12T11:52:42.5951921Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.psd1'. 2017-11-12T11:52:42.5991937Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.psm1'. 2017-11-12T11:52:42.6042319Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.LegacySDK.dll'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Publish-TestResults'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Convert-String'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Remove-Environment'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-Environment'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Get-ProviderData'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'New-OperationLog'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register-Environment'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register-Provider'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register-ProviderData'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Find-Files'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'. 2017-11-12T11:52:42.6641928Z ##[debug]Exporting cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6641928Z ##[debug]Exporting cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6641928Z ##[debug]Exporting cmdlet 'Convert-String'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Convert-String'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6741912Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6741912Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6861928Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.psd1'. 2017-11-12T11:52:42.6881928Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.psm1'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Publish-TestResults'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Convert-String'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Remove-Environment'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Complete-EnvironmentOperation'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Complete-EnvironmentResourceOperation'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Get-Environment'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-ProviderData'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'New-OperationLog'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Register-Environment'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Register-EnvironmentDefinition'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Register-Provider'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Register-ProviderData'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Find-Files'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Find-Files'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Find-Files'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6991925Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6991925Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.7001917Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.7521932Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.8482054Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.Client.dll 2017-11-12T11:52:42.8611899Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.8911905Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.Common.dll 2017-11-12T11:52:42.8951900Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.9081925Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.VersionControl.Client.dll 2017-11-12T11:52:42.9101920Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.9241918Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.WorkItemTracking.Client.dll 2017-11-12T11:52:42.9321925Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.9511931Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.Diff.dll 2017-11-12T11:52:42.9731927Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'. 2017-11-12T11:52:42.9731927Z ##[debug]Exporting function 'Get-SourceProvider'. 2017-11-12T11:52:42.9741927Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'. 2017-11-12T11:52:42.9741927Z ##[debug]Exporting function 'Convert-ToItemSpecs'. 2017-11-12T11:52:42.9741927Z ##[debug]The 'AutoPend-WorkspaceChanges' command in the vsts-tfvc-shared' module was imported, but because its name does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'Convert-ToItemSpecs'. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'Get-SourceProvider'. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'. 2017-11-12T11:52:43.0181910Z ##[debug]Entering Get-SourceProvider 2017-11-12T11:52:43.0491932Z ##[debug]Entering Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0601924Z ##[debug]Leaving Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0611915Z ##[debug]Leaving Get-SourceProvider 2017-11-12T11:52:43.0651932Z ##[debug]Entering Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0651932Z ##[debug]Leaving Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0851916Z ##[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Name' because it is null. 2017-11-12T11:52:43.0851916Z ##[debug]Processed: ##vso[task.logissue type=error;]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Name' because it is null. 2017-11-12T11:52:43.0851916Z at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.PSScriptCmdlet.DoEndProcessing() 2017-11-12T11:52:43.0851916Z at System.Management.Automation.CommandProcessorBase.Complete() 2017-11-12T11:52:43.0931907Z ##[error]PowerShell script completed with 1 errors. 2017-11-12T11:52:43.0951900Z ##[section]Finishing: Check changes into source control

Can someone help on that..? 10x!! Roy

jessehouwing commented 6 years ago

Somehow it's running the dispose source provider twice: 2017-11-12T11:52:43.0181910Z ##[debug]Entering Get-SourceProvider 2017-11-12T11:52:43.0491932Z ##[debug]Entering Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0601924Z ##[debug]Leaving Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0611915Z ##[debug]Leaving Get-SourceProvider 2017-11-12T11:52:43.0651932Z ##[debug]Entering Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0651932Z ##[debug]Leaving Invoke-DisposeSourceProvider

I suspect it's caused by the fact that Name = $env:BUILD_REPOSITORY_PROVIDER returns an empty string. I've had another report where this variable isn't always populated. While that would make sense, I don't understand why the variable would be left empty that would be a bug in the vsts-agent.

On Mon, Nov 13, 2017 at 8:21 AM, RoyRosenberg notifications@github.com wrote:

Hi, I'm using checkin task during a build. use VSTS and a LOCAL build agent in my organization sometimes I get this error 2017-11-12T11:52:43.0851916Z ##[error]System.Management.Automation. ParameterBindingValidationException: Cannot bind argument to parameter 'Name' because it is null.

here's the full log: 2017-11-12T11:52:41.1271911Z ##[debug]Evaluating condition for step: 'Check changes into source control' 2017-11-12T11:52:41.1271911Z ##[debug]Evaluating: succeeded() 2017-11-12T11:52:41.1271911Z ##[debug]Evaluating succeeded: 2017-11-12T11:52:41.1271911Z ##[debug]=> (Boolean) True 2017-11-12T11:52:41.1271911Z ##[debug]Expanded: True 2017-11-12T11:52:41.1271911Z ##[debug]Result: True 2017-11-12T11:52:41.1281907Z ##[section]Starting: Check changes into source control 2017-11-12T11:52:41.1281907Z ==============================

2017-11-12T11:52:41.1281907Z Task : TFVC - Check-in changes 2017-11-12T11:52:41.1281907Z Description : Checks in any files changed in the repository. 2017-11-12T11:52:41.1281907Z Version : 1.2.4 2017-11-12T11:52:41.1281907Z Author : Jesse Houwing 2017-11-12T11:52:41.1281907Z Help : Version: 1.2.4. More Information https://github.com/jessehouwing/vsts-tfvc-tasks/wiki/Check-in 2017-11-12T11:52:41.1281907Z ==============================

2017-11-12T11:52:41.1421914Z Preparing task execution handler. 2017-11-12T11:52:42.0871928Z Executing the powershell script: C:\agent_work_tasks\TFVCCheckin_31f040e5-e040- 4556-878a-59a47c7128bd\1.2.4\TfvcCheckin.ps1 2017-11-12T11:52:42.0981926Z ##[debug]PowerShellHandler.Execute - AddCommand(C:\agent_work_tasks\TFVCCheckin_31f040e5- e040-4556-878a-59a47c7128bd\1.2.4\TfvcCheckin.ps1) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - Add inputParameters 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(ConfirmUnderstand=true) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(IncludeNoCIComment=true) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(BypassGatedCheckin=false) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(autoDetectAdds=false) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(autoDetectDeletes=false) 2017-11-12T11:52:42.0991915Z ##[debug]PowerShellHandler.Execute - AddParameter(OverridePolicy=false) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(OverridePolicyReason=) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(ItemSpec=$/TeamWork/Oracle/Versions/V7.1.2/Source/TeamWork/ SolutionInfo.cs;$/TeamWork/Framework/Versions/V7.1.2/ Source/CommonFramework/SolutionInfo.cs;$/TeamWork/ Tools/Versions/V7.1.2/Source/PipelineAdmin/SolutionInfo.cs; $/TeamWork/Tools/Versions/V7.1.2/Source/RM/SolutionInfo.cs; $/TeamWork/Tools/Versions/V7.1.2/Source/twcmd_client/src/ META-INF/MANIFEST.MF;$/TeamWork/Oracle/Versions/V7.1. 2/Source/TeamWork/Sync_Framework_Bin.bat;$/TeamWork/ Tools/Versions/V7.1.2/Source/PipelineAdmin/SyncWithFrameworkBin.bat;$/ TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/ UpdateFrameworkBin.bat;$/TeamWork/Tools/Versions/V7.1. 2/Source/twcmd_client/build.properties;$/TeamWork/Oracle/ Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionHelp/ build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionSDK/build.properties;$/TeamWork/ Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/ TWSQLDeveloperExtension/build.properties;$/TeamWork/Oracle/ Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/DeployBundle/META- INF/bundle.xml;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/src/META-INF/extension.xml;$/ TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/ TWSQLDeveloperExtension/src/META-INF/MANIFEST.MF) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(Notes=) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(Recursion=None) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(Comment=) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(SkipGated=true) 2017-11-12T11:52:42.1001933Z ##[debug]PowerShellHandler.Execute - AddParameter(SkipShelveset=true) 2017-11-12T11:52:42.3791926Z ##[debug]PowerShellHandler.Execute - Invoke 2017-11-12T11:52:42.5111927Z ##[debug]Entering script TfvcCheckin.ps1 2017-11-12T11:52:42.5111927Z ##[debug]Parameter Values 2017-11-12T11:52:42.5621923Z ##[debug]ConfirmUnderstand = true 2017-11-12T11:52:42.5621923Z ##[debug]IncludeNoCIComment = true 2017-11-12T11:52:42.5631932Z ##[debug]BypassGatedCheckin = false 2017-11-12T11:52:42.5631932Z ##[debug]AutoDetectAdds = false 2017-11-12T11:52:42.5631932Z ##[debug]AutoDetectDeletes = false 2017-11-12T11:52:42.5641931Z ##[debug]OverridePolicy = false 2017-11-12T11:52:42.5641931Z ##[debug]OverridePolicyReason = 2017-11-12T11:52:42.5651928Z ##[debug]Itemspec = $/TeamWork/Oracle/Versions/V7.1.2/Source/TeamWork/ SolutionInfo.cs;$/TeamWork/Framework/Versions/V7.1.2/ Source/CommonFramework/SolutionInfo.cs;$/TeamWork/ Tools/Versions/V7.1.2/Source/PipelineAdmin/SolutionInfo.cs; $/TeamWork/Tools/Versions/V7.1.2/Source/RM/SolutionInfo.cs; $/TeamWork/Tools/Versions/V7.1.2/Source/twcmd_client/src/ META-INF/MANIFEST.MF;$/TeamWork/Oracle/Versions/V7.1. 2/Source/TeamWork/Sync_Framework_Bin.bat;$/TeamWork/ Tools/Versions/V7.1.2/Source/PipelineAdmin/SyncWithFrameworkBin.bat;$/ TeamWork/Tools/Versions/V7.1.2/Source/PipelineAdmin/ UpdateFrameworkBin.bat;$/TeamWork/Tools/Versions/V7.1. 2/Source/twcmd_client/build.properties;$/TeamWork/Oracle/ Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionHelp/ build.properties;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWExtensionSDK/build.properties;$/TeamWork/ Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/ TWSQLDeveloperExtension/build.properties;$/TeamWork/Oracle/ Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/DeployBundle/META- INF/bundle.xml;$/TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/TWSQLDeveloperExtension/src/META-INF/extension.xml;$/ TeamWork/Oracle/Versions/V7.1.2/Source/SqlDeveloper Plugin/v4.x/ TWSQLDeveloperExtension/src/META-INF/MANIFEST.MF 2017-11-12T11:52:42.5651928Z ##[debug]Notes = 2017-11-12T11:52:42.5651928Z ##[debug]Recursion = None 2017-11-12T11:52:42.5661925Z ##[debug]Comment = 2017-11-12T11:52:42.5661925Z ##[debug]SkipGated = true 2017-11-12T11:52:42.5661925Z ##[debug]SkipShelveset = true 2017-11-12T11:52:42.5661925Z ##[debug]Importing modules 2017-11-12T11:52:42.5751929Z ##[debug]Loading module from path 'C:\agent_work_tasks\TFVCCheckin_31f040e5-e040- 4556-878a-59a47c7128bd\1.2.4\vsts-tfvc-shared.psm1'. 2017-11-12T11:52:42.5951921Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation. DistributedTask.Task.Internal\Microsoft.TeamFoundation. DistributedTask.Task.Internal.psd1'. 2017-11-12T11:52:42.5991937Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation. DistributedTask.Task.Internal\Microsoft.TeamFoundation. DistributedTask.Task.Internal.psm1'. 2017-11-12T11:52:42.6042319Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation. DistributedTask.Task.LegacySDK.dll'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Publish-TestResults'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6491916Z ##[debug]Importing cmdlet 'Convert-String'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6501916Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'. 2017-11-12T11:52:42.6511928Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Remove-Environment'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Complete- EnvironmentOperation'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Complete- EnvironmentResourceOperation'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-Environment'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'. 2017-11-12T11:52:42.6521931Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Get-ProviderData'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'New-OperationLog'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register-Environment'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register- EnvironmentDefinition'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register-Provider'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Register-ProviderData'. 2017-11-12T11:52:42.6531925Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Find-Files'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'. 2017-11-12T11:52:42.6541926Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'. 2017-11-12T11:52:42.6641928Z ##[debug]Exporting cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6641928Z ##[debug]Exporting cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6641928Z ##[debug]Exporting cmdlet 'Convert-String'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6651929Z ##[debug]Exporting cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6681925Z ##[debug]Exporting cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6691921Z ##[debug]Exporting cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Convert-String'. 2017-11-12T11:52:42.6712488Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6721927Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6731921Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6741912Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6741912Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6861928Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation. DistributedTask.Task.Common\Microsoft.TeamFoundation. DistributedTask.Task.Common.psd1'. 2017-11-12T11:52:42.6881928Z ##[debug]Loading module from path 'C:\agent\externals\vstshost\Microsoft.TeamFoundation. DistributedTask.Task.Common\Microsoft.TeamFoundation. DistributedTask.Task.Common.psm1'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Invoke-ResultPublisher'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Publish-TestResults'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Convert-String'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2017-11-12T11:52:42.6922390Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-DeployTestAgent'. 2017-11-12T11:52:42.6931919Z ##[debug]Importing cmdlet 'Invoke-RunDistributedTests'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Invoke-BlockEnvironment'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Copy-FilesToAzureBlob'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Copy-FilesToTargetMachine'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Copy-ToAzureMachines'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Remove-Environment'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Remove-EnvironmentResources'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Complete- EnvironmentOperation'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Complete- EnvironmentResourceOperation'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Complete-ResourceOperation'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Get-Environment'. 2017-11-12T11:52:42.6941917Z ##[debug]Importing cmdlet 'Get-EnvironmentProperty'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-EnvironmentResources'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-ExternalIpAddress'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-ParsedSessionVariables'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Get-ProviderData'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Invoke-EnvironmentOperation'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Invoke-ResourceOperation'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Invoke-PsOnRemote'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'New-OperationLog'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Copy-FilesToRemote'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Register-Environment'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Register- EnvironmentDefinition'. 2017-11-12T11:52:42.6951928Z ##[debug]Importing cmdlet 'Register-Provider'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Register-ProviderData'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Invoke-UnblockEnvironment'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Find-Files'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Enable-CodeCoverage'. 2017-11-12T11:52:42.6961928Z ##[debug]Importing cmdlet 'Publish-CodeCoverage'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Find-Files'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.6981921Z ##[debug]Exporting cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Complete-Task'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Find-Files'. 2017-11-12T11:52:42.6981921Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2017-11-12T11:52:42.6991925Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2017-11-12T11:52:42.6991925Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2017-11-12T11:52:42.7001917Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2017-11-12T11:52:42.7521932Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.8482054Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.Client.dll 2017-11-12T11:52:42.8611899Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.8911905Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.Common.dll 2017-11-12T11:52:42.8951900Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.9081925Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation. VersionControl.Client.dll 2017-11-12T11:52:42.9101920Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.9241918Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation. WorkItemTracking.Client.dll 2017-11-12T11:52:42.9321925Z ##[debug]Setting default assembly locations 2017-11-12T11:52:42.9511931Z ##[debug]Loading assembly: C:\agent\externals\vstsom\Microsoft.TeamFoundation.Diff.dll 2017-11-12T11:52:42.9731927Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'. 2017-11-12T11:52:42.9731927Z ##[debug]Exporting function 'Get-SourceProvider'. 2017-11-12T11:52:42.9741927Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'. 2017-11-12T11:52:42.9741927Z ##[debug]Exporting function 'Convert-ToItemSpecs'. 2017-11-12T11:52:42.9741927Z ##[debug]The 'AutoPend-WorkspaceChanges' command in the vsts-tfvc-shared' module was imported, but because its name does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'Convert-ToItemSpecs'. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'Get-SourceProvider'. 2017-11-12T11:52:42.9741927Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'. 2017-11-12T11:52:43.0181910Z ##[debug]Entering Get-SourceProvider 2017-11-12T11:52:43.0491932Z ##[debug]Entering Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0601924Z ##[debug]Leaving Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0611915Z ##[debug]Leaving Get-SourceProvider 2017-11-12T11:52:43.0651932Z ##[debug]Entering Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0651932Z ##[debug]Leaving Invoke-DisposeSourceProvider 2017-11-12T11:52:43.0851916Z ##[error]System.Management.Automation. ParameterBindingValidationException: Cannot bind argument to parameter 'Name' because it is null. 2017-11-12T11:52:43.0851916Z ##[debug]Processed: ##vso[task.logissue type=error;]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'Name' because it is null. 2017-11-12T11:52:43.0851916Z at System.Management.Automation. ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter. ActionCallInstruction2.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter. EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation.Interpreter. EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation. Interpreter.Interpreter.Run(InterpretedFrame frame) 2017-11-12T11:52:43.0851916Z at System.Management.Automation. Interpreter.LightLambda.RunVoid1[T0](T0 arg0) 2017-11-12T11:52:43.0851916Z at System.Management.Automation. PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess) 2017-11-12T11:52:43.0851916Z at System.Management.Automation. PSScriptCmdlet.DoEndProcessing() 2017-11-12T11:52:43.0851916Z at System.Management.Automation. CommandProcessorBase.Complete() 2017-11-12T11:52:43.0931907Z ##[error]PowerShell script completed with 1 errors. 2017-11-12T11:52:43.0951900Z ##[section]Finishing: Check changes into source control

Can someone help on that..? 10x!! Roy

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/55, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS3YCpCSQ9OyLrdZ8UtHDYgUhhNb_ks5s1-3mgaJpZM4QbVqw .

jessehouwing commented 6 years ago

Quite likely related to #54.

I've asked Microsoft to look into this, as it looks like an agent thing. It would be very helpful if you could provide a few additional detail:

svc76 commented 6 years ago

Is there a solution to this? I'm also running into the same issue at my work place.

jessehouwing commented 6 years ago

I haven't found the root cause, it seems to be something wrong with the workspace, but I have never been able to repro it.

If you can or if you can see anything special about your setup, please share.

On 9 Jan 2018 18:41, "csk" notifications@github.com wrote:

Is there a solution to this? I'm also running into the same issue at my work place.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/55#issuecomment-356358791, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS8ySLnVrHjjNM4uz8ZPvvBQw4UiVks5tI6SsgaJpZM4QbVqw .

jessehouwing commented 6 years ago

Right now the only thing I can do is give you a less nasty error message, because if I can't get the workspace, there's precious little else the tasks can do.

On 9 Jan 2018 18:44, "Jesse Houwing" jesse.houwing@gmail.com wrote:

I haven't found the root cause, it seems to be something wrong with the workspace, but I have never been able to repro it.

If you can or if you can see anything special about your setup, please share.

On 9 Jan 2018 18:41, "csk" notifications@github.com wrote:

Is there a solution to this? I'm also running into the same issue at my work place.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/55#issuecomment-356358791, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS8ySLnVrHjjNM4uz8ZPvvBQw4UiVks5tI6SsgaJpZM4QbVqw .

numgithub commented 5 years ago

I just struggled with this issue. We are running on-premise TFS. What I think caused my problem was I had imported the build definition by copying another projects build definition. On import it had dropped the "Name" value. I could see that in my get sources step it was missing and exporting out the build definition again also confirmed that this value was missing:

    "id": "$/",
    "type": "TfsVersionControl",
    "name": "MyTfsProjectName", <= THIS WAS MISSING ON AN IMPORTED DEFINITION
    "url": "https://MyTfsProjectNameUrl/",
    "defaultBranch": "$/MyTfsProjectNameBranch",
    "rootFolder": "$/MyTfsProjectNameRoot",
    "clean": "true",
    "checkoutSubmodules": false

To resolve I found recreating or cloning a build def and making sure this name parameter existed solved this issue, then I did not get this error and could use this tool again (very cool tool btw).

Maybe this could also be worked around by setting the value in powershell too..

jessehouwing commented 5 years ago

Thanks so much for digging this deep! I'll file a bug with the product team!

jessehouwing commented 5 years ago

From the Product Team:

Thanks for reporting! We will take a look. I can see why we would drop the name on export, but as the definition is imported back in, we should be setting it to the current project name. I have filed a bug for internal tracking.

You could try to set the project name in the json between export and import to workaround. I haven’t verified that yet, but it’s worth a shot.

MireilleHanna commented 5 years ago

what version of TFS on prem are you running?

MireilleHanna commented 5 years ago

I think it is behaving as expected, if a user exports a build definition from ProjectA then imports to ProjectB, we leave the team project unset since ProjectA does not exist and when the build definition is saved, it will be saved to ProjectB. Feel free to reopen the issue if this is not the behavior that you saw.