Closed ChristophLindemann closed 7 years ago
Hey Christoph, can you provide a few more details?
Do you have an idea why this item is in your logs?
$/xxxx/xxxx/1.x/NugetsVersion.props: Warning: There are other pending changes against the item.
Can you add a manual intervention step before and after the update pending changes and run tf vc status
in the working directory on the build agent?
Hi Jesse,
14.95.25229.0
)NugetsVersion.props
: I wondered about that one, too. But maybe it is from a previous gate that failed. I don't think we clean the workspace on the gate, for incremental builds.Please let me know if there is other information that you need.
I will setup a new branch, and an new build definition, where I can muck around.
Hi @jessehouwing
Here some new logs, and workspace information. I implemented a "manual intervention" step by having a powershell script wait for a file.
TFS 2015.2
14.95.25229.0
2016-11-30T13:17:44.4162073Z Entering OnPrepareEnvironment
2016-11-30T13:17:44.4318320Z Primary repository: Foo
2016-11-30T13:17:44.4318320Z Calculating build folder hash key.
2016-11-30T13:17:44.4318320Z Loading tracking config if exists: D:\Agent\_work\SourceRootMapping\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\492\SourceFolder.json
2016-11-30T13:17:44.4318320Z Parsing tracking config file version 2 format.
2016-11-30T13:17:44.4474814Z Writing config to file: D:\Agent\_work\SourceRootMapping\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\492\SourceFolder.json
2016-11-30T13:17:44.4943344Z Checking if artifacts directory exists: D:\Agent\_work\58\a
2016-11-30T13:17:44.4943344Z Deleting artifacts directory.
2016-11-30T13:17:44.4943344Z Creating artifacts directory.
2016-11-30T13:17:44.4943344Z Checking if test results directory exists: D:\Agent\_work\58\TestResults
2016-11-30T13:17:44.4943344Z Deleting test results directory.
2016-11-30T13:17:44.4943344Z Creating test results directory.
2016-11-30T13:17:44.4943344Z Setting local variables.
2016-11-30T13:17:44.4943344Z Create the initial timeline records for the tasks
2016-11-30T13:17:44.4943344Z Preparing repositories
2016-11-30T13:17:44.4943344Z repo clean = True
2016-11-30T13:17:44.4943344Z Found 2 endpoints to consider
2016-11-30T13:17:44.5099599Z Found 1 repositories to sync
2016-11-30T13:17:44.5255856Z Starting: Get sources
2016-11-30T13:17:44.5412105Z build.fetchtags=false
2016-11-30T13:17:44.5412105Z Entering TfvcSourceProvider.PrepareRepositoryAsync
2016-11-30T13:17:44.5412105Z localPath=D:\Agent\_work\58\s
2016-11-30T13:17:44.5412105Z clean=True
2016-11-30T13:17:44.5412105Z sourceVersion=C84983
2016-11-30T13:17:44.5412105Z mappingJson={"mappings":[{"serverPath":"$/Foo/Bar","mappingType":"map","localPath":"\\"}]}
2016-11-30T13:17:44.5412105Z Syncing repository: Foo (TFVC)
2016-11-30T13:17:44.5412105Z workspaceName=ws_58_2
2016-11-30T13:17:44.8693477Z Undo any pending changes under workspace.
2016-11-30T13:17:44.9318434Z tf undo
2016-11-30T13:17:45.0412390Z Undoing add: D:\Agent\_work\58\s\gate.trigger.file.txt
2016-11-30T13:17:45.5724855Z Delete from disk those items which were not in the local version table.
2016-11-30T13:17:45.5724855Z Deleting: D:\Agent\_work\58\s\Build\BuildServer\Gate.PrepareBuild.proj.log
2016-11-30T13:17:45.5724855Z Deleting: D:\Agent\_work\58\s\gate.trigger.file.txt
2016-11-30T13:17:45.5724855Z Recreate missing folders on disk.
2016-11-30T13:17:45.5724855Z Redownload missing files from the server.
2016-11-30T13:17:45.5724855Z Redownloading: D:\Agent\_work\58\s\branch.props
2016-11-30T13:17:45.5724855Z Redownloading: D:\Agent\_work\58\s\Version.cs
2016-11-30T13:17:45.8693685Z Workspace Name: ws_58_2;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
2016-11-30T13:17:45.8849926Z tf unshelve Gated_2016-11-30_02.17.40.1494;DOMAIN\DEVUSER
2016-11-30T13:17:45.9943717Z $/Foo/Bar/gate.trigger.file.txt: Warning: There are other pending changes against the item.
2016-11-30T13:17:45.9943717Z add: D:\Agent\_work\58\s\gate.trigger.file.txt
2016-11-30T13:17:46.0099959Z Successfully unshelved Gated_2016-11-30_02.17.40.1494;DOMAIN\DEVUSER into workspace ws_58_2;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
2016-11-30T13:17:46.0256197Z tf get /version:C84983
2016-11-30T13:17:46.2287711Z tf shelve _Build_79967 /replace
2016-11-30T13:17:46.3068816Z Successfully created new shelveset _Build_79967;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
2016-11-30T13:17:46.3850104Z Done syncing repository Foo to version C84983 (workspace version C84969)
2016-11-30T13:17:46.3850104Z Leaving TfvcSourceProvider.PrepareRepositoryAsync
Workspace : ws_58_2
Owner : Project Collection Build Service (TEAM FOUNDATION)
Computer : TFSBUILD05
Comment : Created by Distributed Task - getCode
Collection : tfs\DefaultCollection
Permissions: Public
Location : Server
File Time : Current
Working folders:
$/Foo/Bar: D:\Agent\_work\58\s
D:\Agent\_work\58\s>tf vc status /s:"http://tfs:8080/tfs/DefaultCollection" /workspace:"ws_58_2;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
File name Change User Local path
--------------------- ------ -------------------------------------------------- --------------------------------------------------------------------------
$/Foo/Bar
gate.trigger.file.txt add Project Collection Build Service (TEAM FOUNDATION) D:\Agent\_work\58\s\gate.trigger.file.txt
1 change(s)
2016-11-30T13:18:24.5832652Z Set workingFolder to default: D:\Agent\tasks\TFVCUpdateShelveset\1.1.1025
2016-11-30T13:18:24.6196685Z Executing the powershell script: D:\Agent\tasks\TFVCUpdateShelveset\1.1.1025\TfvcUpdateShelveset.ps1
2016-11-30T13:18:24.7915724Z ##[debug]Entering script TfvcUpdateShelveset.ps1
2016-11-30T13:18:24.7915724Z ##[debug]Parameter Values
2016-11-30T13:18:24.8071954Z ##[debug]Itemspec = $/Foo/Bar/Version.cs;$/Foo/Bar/branch.props
2016-11-30T13:18:24.8071954Z ##[debug]Recursion = None
2016-11-30T13:18:24.8071954Z ##[debug]AutoDetectAdds = false
2016-11-30T13:18:24.8071954Z ##[debug]AutoDetectDeletes = false
2016-11-30T13:18:24.8071954Z ##[debug]SkipNonGated = true
2016-11-30T13:18:24.8071954Z ##[debug]Importing modules
2016-11-30T13:18:24.8228216Z ##[debug]Loading module from path 'D:\Agent\tasks\TFVCUpdateShelveset\1.1.1025\vsts-tfvc-shared.psm1'.
2016-11-30T13:18:24.8228216Z ##[debug]Loading module from path 'D:\Agent\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.dll'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Add-BuildAttachment'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Convert-String'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-IndexedSourceFilePaths'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-ToolPath'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-TaskVariable'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-VssConnection'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Invoke-Ant'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Invoke-BatchScript'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Invoke-Maven'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Invoke-MSBuild'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Invoke-PublishSymbols'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Invoke-Tool'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Invoke-VSTest'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Register-XamarinLicense'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'.
2016-11-30T13:18:24.8384471Z ##[debug]Importing cmdlet 'Get-X509Certificate'.
2016-11-30T13:18:24.8384471Z ##[debug]Loading module from path 'D:\Agent\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.dll'.
2016-11-30T13:18:24.8540733Z ##[debug]Importing cmdlet 'Complete-Task'.
2016-11-30T13:18:24.8540733Z ##[debug]Importing cmdlet 'Get-LocalizedString'.
2016-11-30T13:18:24.8540733Z ##[debug]Importing cmdlet 'Set-TaskVariable'.
2016-11-30T13:18:24.8540733Z ##[debug]Importing cmdlet 'Set-TaskProgress'.
2016-11-30T13:18:24.8540733Z ##[debug]Importing cmdlet 'Add-TaskIssue'.
2016-11-30T13:18:24.8540733Z ##[debug]Importing cmdlet 'Write-TaskDetail'.
2016-11-30T13:18:24.8540733Z ##[debug]Importing cmdlet 'Find-Files'.
2016-11-30T13:18:24.8696992Z ##[debug]Setting default assembly locations
2016-11-30T13:18:24.9321984Z ##[debug]Loading assembly: D:\Agent\Agent\Worker\Microsoft.TeamFoundation.Client.dll
2016-11-30T13:18:24.9321984Z ##[debug]Setting default assembly locations
2016-11-30T13:18:24.9321984Z ##[debug]Loading assembly: D:\Agent\Agent\Worker\Microsoft.TeamFoundation.Common.dll
2016-11-30T13:18:24.9321984Z ##[debug]Setting default assembly locations
2016-11-30T13:18:24.9478238Z ##[debug]Loading assembly: D:\Agent\Agent\Worker\Microsoft.TeamFoundation.VersionControl.Client.dll
2016-11-30T13:18:24.9478238Z ##[debug]Setting default assembly locations
2016-11-30T13:18:24.9478238Z ##[debug]Loading assembly: D:\Agent\Agent\Worker\Microsoft.TeamFoundation.WorkItemTracking.Client.dll
2016-11-30T13:18:24.9478238Z ##[debug]Setting default assembly locations
2016-11-30T13:18:24.9478238Z ##[debug]Loading assembly: D:\Agent\Agent\Worker\Microsoft.TeamFoundation.Diff.dll
2016-11-30T13:18:24.9634510Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'.
2016-11-30T13:18:24.9634510Z ##[debug]Exporting function 'Get-SourceProvider'.
2016-11-30T13:18:24.9634510Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'.
2016-11-30T13:18:24.9634510Z ##[debug]Exporting function 'Convert-ToItemSpecs'.
2016-11-30T13:18:24.9634510Z ##[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.
2016-11-30T13:18:24.9634510Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'.
2016-11-30T13:18:24.9634510Z ##[debug]Importing function 'Convert-ToItemSpecs'.
2016-11-30T13:18:24.9634510Z ##[debug]Importing function 'Get-SourceProvider'.
2016-11-30T13:18:24.9634510Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'.
2016-11-30T13:18:24.9790738Z ##[debug]Entering Get-SourceProvider
2016-11-30T13:18:25.0415786Z ##[debug]Leaving Get-SourceProvider
2016-11-30T13:18:25.2447093Z Updating shelveset (_Build_79967;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) with local changes.
2016-11-30T13:18:25.2986690Z Done.
2016-11-30T13:18:25.3143075Z ##[debug]Entering Invoke-DisposeSourceProvider
2016-11-30T13:18:25.3143075Z ##[debug]Disposing tfsTeamProjectCollection
2016-11-30T13:18:25.3143075Z ##[debug]Leaving Invoke-DisposeSourceProvider
D:\Agent\_work\58\s>tf vc status /s:"http://tfs:8080/tfs/DefaultCollection" /workspace:"ws_58_2;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
File name Change User Local path
--------------------- ------ -------------------------------------------------- ------------------------------------------------------------------------
$/Foo/Bar
gate.trigger.file.txt add Project Collection Build Service (TEAM FOUNDATION) D:\Agent\_work\58\s\gate.trigger.file.txt
Checking in shelveset _Build_79967;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx on behalf of Christoph Lindemann
[Error]An error occurred during check-in of shelveset _Build_79967: Value cannot be null.
Parameter name: collection
[Error]No changes checked in
1 change(s)
Somehow you're on a server workspace, which won't auto-detect the changes. Your build agent isn't supposed to be on a server workspace.
Workspace : ws_58_2 Owner : Project Collection Build Service (TEAM FOUNDATION) Computer : TFSBUILD05 Comment : Created by Distributed Task - getCode Collection : tfs\DefaultCollection Permissions: Public Location : Server File Time : Current
You're also on a pretty old version of TFS by support standards. Update 2.1 and Update 3 have been released with accompanying agents. If at all possible can you try what happens when you use the agent that ships with VSTS? You should be able to configure it against the TFS server.
I'd also like to know what the configuration of the default workspace type on your server/projectcollection is. I suspect it may be set to server, but the agent should, as far as I know, ignore this setting.
The TFS server has been upgraded through many years, and there are also a lot of XAML builds, so there might be some setting that was copied when the new build type arrived? Maybe it was setup here for compatibility reasons when migrating old XAML build scripts. I will have to check with the build masters.
The default workspace location here is Server.
The upgrade to 2015.3 failed, so we stayed on the 2015.2 version waiting for 2015.4. I guess that is 2017 now. And the plan is to upgrade to 2017 (but that will take some time of testing and validating)
Maybe you could consider adding an assert on the workspace location, so it fails when using Server workspaces.
Maybe a check-out task (#36) for supporting Server workspaces would be nice, for us that for some reasons are stuck with server workspaces.
I checked with the Microsoft folks that build the agent and it should not be creating server workspaces. Could you try editing the workspace from the commandline and set it to local? See if that fixes it?
The warning or error makes sense.
I'm not really wanting to write a checkout task for a feature that is not supposed to exist. So I've asked someone from Microsoft to look into this issue.
On Nov 30, 2016 19:29, "Christoph Lindemann" notifications@github.com wrote:
The TFS server has been upgraded through many years, and there are also a lot of XAML builds, so there might be some setting that was copied when the new build type arrived? Maybe it was setup here for compatibility reasons when migrating old XAML build scripts. I will have to check with the build masters.
The default workspace location here is Server.
The upgrade to 2015.3 failed, so we stayed on the 2015.2 version waiting for 2015.4. I guess that is 2017 now. And the plan is to upgrade to 2017 (but that will take some time of testing and validating)
Maybe you could consider adding an assert on the workspace location, so it fails when using Server workspaces.
Maybe #36 https://github.com/jessehouwing/vsts-tfvc-tasks/issues/36 for supporting Server workspaces would be nice, for us that fore some reasons are stuck with server workspaces.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/37#issuecomment-263954047, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uSwPLTzScmUbiAu8QGsq0EiB0HLKQks5rDcCHgaJpZM4K_UBY .
Ok, I will check with the buildmaster tomorrow, if she has any idea of why it created a server workspace, maybe some setting or someone modified it.
And then maybe I will change the workspace, or install a new agent, and see how that goes.
Thanks! In the meantime I'm following up with my contacts to see what may be happening inside the agent.
On Nov 30, 2016 21:15, "Christoph Lindemann" notifications@github.com wrote:
Ok, I will check with the buildmaster tomorrow, if she has any idea of why it created a server workspace, maybe some setting or someone modified it.
And then maybe I will change the workspace, or install a new agent, and see how that goes.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/37#issuecomment-263982600, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS75qSDvTK1zJHDNx5zBAreb4LbqGks5rDdlVgaJpZM4K_UBY .
Got verification from Microsoft that your workspace should not be configured as a server workspace and that the build agent doesn't create workspaces with that configuration by itself (or that would be a bug). There has been a very early 2.0 preview agent where the workspaces were created as server and that has subsequently been turned off. It's probably best to change the workspace type to local or remove the workspace altogether so the agent will recreate it.
I will look at building in detection and a warning when the workspace has been configured incorrectly.
Hi Jesse,
We have tried to change the workspace to local, and this did not resolve the issue. The issue is exactly the same.
We are using TFS 2015.2.1
And ALL workspaces created på the TFS build user are created with server location.
I'm inclined to consider this a bug in the agent... Given what Microsoft tells me. My suspicion is that it may be caused by having turned on Exclusive Checkout on the server or having the default for the collection set to Server.
I suspect that the support path is to upgrade to TFS 2015.3 or TFS2017 and if possible switch to the 2.0 agent to see if those agent versions cause the same problem. If so, consider filing a bug in https://github.com/Microsoft/vsts-agent/issues
Using the TFS 2015.3 (1.95.3) agent does not resolve this. It still creates server workspace.
I can confirm that the workspace location is set to local
when using agent 2.109.1
.
The build however fails at a different stage, as the agent is not compatible with TFS 2015.2.1 tasks.
...
2016-12-01T13:22:05.1491819Z ##[debug]tf vc workspaces ws_1_7 /computer:* /format:xml /collection:http://TFS:8080/tfs/DefaultCollection/ /loginType:OAuth /login:.,******** /noprompt
2016-12-01T13:22:05.8679985Z ##[debug]<Workspaces />
2016-12-01T13:22:05.8679985Z ##[debug]Deleting: 'D:\A4\_work\1\s'.
2016-12-01T13:22:05.8835595Z ##[command]tf vc workspace /new /location:local /permission:Public ws_1_7 /collection:http://TFS:8080/tfs/DefaultCollection/ /loginType:OAuth /login:.,******** /noprompt
2016-12-01T13:22:06.9025628Z ##[command]tf vc workfold /unmap /workspace:ws_1_7 $/ /collection:http://TFS:8080/tfs/DefaultCollection/ /loginType:OAuth /login:.,******** /noprompt
2016-12-01T13:22:07.4806867Z ##[command]tf vc workfold /map /workspace:ws_1_7 $/Foo/Bar D:\A4\_work\1\s /collection:http://TFS:8080/tfs/DefaultCollection/ /loginType:OAuth /login:.,******** /noprompt
2016-12-01T13:22:08.0588146Z ##[command]tf vc get /version:C85072 /recursive /overwrite D:\A4\_work\1\s /loginType:OAuth /login:.,******** /noprompt
2016-12-01T13:22:09.4892738Z D:\A4\_work\1:
...
C:\Program Files (x86)\Microsoft Visual Studio 14.0>tf vc workspaces ws_1_7 /computer:* /format:detailed /collection:http://TFS:8080/tfs/DefaultColletion/
===============================================================================================================================================================
Workspace : ws_1_7
Owner : Project Collection Build Service (TEAM FOUNDATION)
Computer : TFSBUILD05
Comment :
Collection : TFS\DefaultCollection
Permissions: Public
Location : Local
File Time : Current
Working folders:
$/Foo/Bar: D:\A4\_work\1\s
And then unfortunately the build fails:
...
2016-12-01T13:22:13.5866637Z ==============================================================================
2016-12-01T13:22:13.5866637Z Task : MSBuild
2016-12-01T13:22:13.5866637Z Description : Build with MSBuild
2016-12-01T13:22:13.5866637Z Version : 1.0.26
2016-12-01T13:22:13.5866637Z Author : Microsoft Corporation
2016-12-01T13:22:13.5866637Z Help : [More Information](http://go.microsoft.com/fwlink/?LinkID=613724)
2016-12-01T13:22:13.5866637Z ==============================================================================
...
2016-12-01T13:22:23.8249221Z ##[debug]Caught exception from task script.
2016-12-01T13:22:23.8249221Z ##[debug]Error record:
2016-12-01T13:22:23.9186724Z ##[debug]Leaf path not found: 'D:\A4\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll'
2016-12-01T13:22:23.9186724Z ##[debug]At D:\A4\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.0.26\ps_modules\VstsTaskSdk\ToolFunctions.ps1:32 char:5
2016-12-01T13:22:23.9186724Z ##[debug]+ throw (Get-LocString -Key $resourceKey -ArgumentList $LiteralPath)
2016-12-01T13:22:23.9186724Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-12-01T13:22:23.9186724Z ##[debug] + CategoryInfo : OperationStopped: (Leaf path not f...ild.Logger.dll':String) [], RuntimeException
2016-12-01T13:22:23.9186724Z ##[debug] + FullyQualifiedErrorId : Leaf path not found: 'D:\A4\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuil d.Logger.dll'
2016-12-01T13:22:23.9186724Z ##[debug]
2016-12-01T13:22:23.9342960Z ##[debug]Script stack trace:
2016-12-01T13:22:23.9342960Z ##[debug]at Assert-Path, D:\A4\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.0.26\ps_modules\VstsTaskSdk\ToolFunctions.ps1: line 32
2016-12-01T13:22:23.9342960Z ##[debug]at Invoke-MSBuild, D:\A4\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.0.26\ps_modules\MSBuildHelpers\InvokeFunctions.ps1: line 211
2016-12-01T13:22:23.9342960Z ##[debug]at Invoke-BuildTools, D:\A4\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.0.26\ps_modules\MSBuildHelpers\InvokeFunctions.ps1: line 35
2016-12-01T13:22:23.9342960Z ##[debug]at <ScriptBlock>, D:\A4\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.0.26\MSBuild.ps1: line 24
2016-12-01T13:22:23.9342960Z ##[debug]at <ScriptBlock>, <No file>: line 1
2016-12-01T13:22:23.9342960Z ##[debug]at Merge-Pipelines, D:\A4\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.0.26\ps_modules\VstsTaskSdk\ToolFunctions.ps1: line 119
2016-12-01T13:22:23.9342960Z ##[debug]at Invoke-TaskScript, D:\A4\_work\_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.0.26\ps_modules\VstsTaskSdk\ToolFunctions.ps1: line 43
2016-12-01T13:22:23.9342960Z ##[debug]at <ScriptBlock>, <No file>: line 1
...
I do not know if you (@jessehouwing) can do anything, other then implementing a check for local workspace, and fail on server workspaces.
I have opened an issue with the VSTS Agent project: https://github.com/Microsoft/vsts-agent/issues/703
So you are welcome to close this issue, or keep it around until you have implemented the check.
I've been able to repro this on VSTS using agent version 1.105.6 after setting the Project's option to disable multiple checkout:
and the project collection's default to server:
I'm unable to reproduce this behavior on the 2017 and current VSTS v2.0 agent.
My recommendation would be to enable multiple checkouts (that's been a recommendation for a long time already) and/or to upgrade to the 2.0 agent.
I'm going to add a clear error message to the tasks to ensure this error will be explicit to users of these tasks. If someone is willing to contribute a tf checkout
task, I'll add it to the set, but it should only work in this specific corner case.
Setting Enable multiple check-out
to true
does not help, we already had that enabled, the agents still create server workspaces. I guess you need to set the default workspace type to local, which we, for other reasons, can not at this point.
So I guess we are stuck until we upgrate to TFS 2017.
Thank you for the great help anyway!
I suspect you'll need to set multiple checkout to true and delete all existing workspaces for the change to take effect.
On Thu, Dec 1, 2016 at 3:38 PM, Christoph Lindemann < notifications@github.com> wrote:
Setting Enable multiple check-out to true does not help, we already had that enabled, the agents still create server workspaces. I guess you need to set the default workspace type to local, which we, for other reasons, can not at this point.
So I guess we are stuck until we upgrate to TFS 2017.
Thank you for the great help anyway!
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/37#issuecomment-264189116, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uSz68Ps3AzcMy4itXx0bKah1Wn1q4ks5rDtv0gaJpZM4K_UBY .
after Microsoft came back with the fact that on agent 1.x it is supported to use server workspaces, but that even they didn't realize it ;), I've created an experimental package that holds a Checkout task... if you're willing to help me test and find the cases that are and aren't working, I'd be willing to share it to your accounts.
Hi @jessehouwing,
That sounds awesome, and I am happy to test it here, on TFS 2015.3, and if that works on the produktion server running 2015.2.1.
@jessehouwing
Sorry for the delay.
Unfortunately, the checkout task failed:
2016-12-06T11:43:20.7668872Z ##[debug]Leaving Invoke-DisposeSourceProvider
2016-12-06T11:43:20.7824913Z ##[error]System.Management.Automation.CommandNotFoundException: The term 'Write-Waring' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
2016-12-06T11:43:20.7824913Z ##[error] at System.Management.Automation.CommandProcessorBase.Complete()
2016-12-06T11:43:20.8137617Z Finishing task: TFVCCheckout
2016-12-06T11:43:20.8293710Z ##[error]System.Exception: Task TFVCCheckout failed. This caused the job to fail. Look at the logs for the task for more details.
2016-12-06T11:43:20.8293710Z ##[error] at Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.Run(IJobContext jobContext, IJobRequest job, IJobExtension jobExtension, CancellationTokenSource tokenSource)
2016-12-06T11:43:20.8293710Z Entering OnFinalizeJob
2016-12-06T11:43:20.8293710Z Leaving OnFinalizeJob
The problem is a typo in vsts-tfvc-shared.psm1
line 154
. Write-Waring instead of Write-Warning
After fixing (#40) the Write-Waring
issue, the check-out task can check-out files.
However, the following Update Shelveset
clears the shelve and only includes the files from the Check-out task. The items from the initial gate shelve are not included.
So we are getting closer, but we are not there yet.
Here the log:
2016-12-07T15:27:16.0552677Z Entering OnPrepareEnvironment
2016-12-07T15:27:16.0865207Z Primary repository: Bricks
2016-12-07T15:27:16.0865207Z Calculating build folder hash key.
2016-12-07T15:27:16.0865207Z Loading tracking config if exists: D:\A3\_work\SourceRootMapping\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc\343\SourceFolder.json
2016-12-07T15:27:16.0865207Z Parsing tracking config file version 2 format.
2016-12-07T15:27:16.1021466Z Writing config to file: D:\A3\_work\SourceRootMapping\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc\343\SourceFolder.json
2016-12-07T15:27:16.1490224Z Checking if artifacts directory exists: D:\A3\_work\2\a
2016-12-07T15:27:16.1490224Z Deleting artifacts directory.
2016-12-07T15:27:16.1646463Z Creating artifacts directory.
2016-12-07T15:27:16.1646463Z Checking if test results directory exists: D:\A3\_work\2\TestResults
2016-12-07T15:27:16.1646463Z Deleting test results directory.
2016-12-07T15:27:16.1646463Z Creating test results directory.
2016-12-07T15:27:16.1646463Z Setting local variables.
2016-12-07T15:27:16.1646463Z Create the initial timeline records for the tasks
2016-12-07T15:27:16.1646463Z Preparing repositories
2016-12-07T15:27:16.1646463Z repo clean = False
2016-12-07T15:27:16.1646463Z Found 2 endpoints to consider
2016-12-07T15:27:16.1802724Z Found 1 repositories to sync
2016-12-07T15:27:16.1958997Z Starting: Get sources
2016-12-07T15:27:16.1958997Z build.fetchtags=false
2016-12-07T15:27:16.1958997Z Entering TfvcSourceProvider.PrepareRepositoryAsync
2016-12-07T15:27:16.2115231Z localPath=D:\A3\_work\2\s
2016-12-07T15:27:16.2115231Z clean=False
2016-12-07T15:27:16.2115231Z sourceVersion=63621
2016-12-07T15:27:16.2115231Z mappingJson={"mappings":[{"serverPath":"$/Bricks/TFSbuildTasks/mainline","mappingType":"map","localPath":"\\"}]}
2016-12-07T15:27:16.2115231Z Syncing repository: Bricks (TFVC)
2016-12-07T15:27:16.2115231Z workspaceName=ws_2_2
2016-12-07T15:27:17.0601006Z Workspace Name: ws_2_2;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc
2016-12-07T15:27:17.1069926Z tf undo
2016-12-07T15:27:17.5179719Z Undoing edit: D:\A3\_work\2\s\gate.trigger.file.txt
2016-12-07T15:27:17.6273510Z tf unshelve Gated_2016-12-07_04.27.10.1631;FOSS\CLIN
2016-12-07T15:27:18.3547896Z $/Bricks/TFSbuildTasks/mainline/gate.trigger.file.txt: Warning: There are other pending changes against the item.
2016-12-07T15:27:18.3547896Z edit: D:\A3\_work\2\s\gate.trigger.file.txt
2016-12-07T15:27:18.3703951Z Successfully unshelved Gated_2016-12-07_04.27.10.1631;FOSS\CLIN into workspace ws_2_2;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc
2016-12-07T15:27:18.3703951Z tf get /version:63621
2016-12-07T15:27:18.8549937Z tf shelve _Build_59094 /replace
2016-12-07T15:27:18.9174907Z Successfully created new shelveset _Build_59094;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc
2016-12-07T15:27:19.0581215Z Done syncing repository Bricks to version 63621 (workspace version C63621)
2016-12-07T15:27:19.0581215Z Leaving TfvcSourceProvider.PrepareRepositoryAsync
2016-12-07T15:27:19.0737266Z Leaving OnPrepareEnvironment
2016-12-07T15:27:19.1831049Z Running tasks
2016-12-07T15:27:19.1987290Z Starting task: Checking out files from source control
2016-12-07T15:27:19.2299807Z Set workingFolder to default: D:\A3\tasks\TFVCCheckout\1.1.1238
2016-12-07T15:27:19.2612513Z Executing the powershell script: D:\A3\tasks\TFVCCheckout\1.1.1238\TfvcCheckout.ps1
2016-12-07T15:27:19.4331137Z ##[debug]Entering script TfvcCheckout.ps1
2016-12-07T15:27:19.4331137Z ##[debug]Parameter Values
2016-12-07T15:27:19.4487372Z ##[debug]Itemspec = $/Bricks/TFSbuildTasks/mainline/branch.props;$/Bricks/TFSbuildTasks/mainline/Version.cs
2016-12-07T15:27:19.4487372Z ##[debug]Recursion = None
2016-12-07T15:27:19.4487372Z ##[debug]Importing modules
2016-12-07T15:27:19.4643635Z ##[debug]Loading module from path 'D:\A3\tasks\TFVCCheckout\1.1.1238\vsts-tfvc-shared.psm1'.
2016-12-07T15:27:19.4643635Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.dll'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Add-BuildAttachment'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Convert-String'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-IndexedSourceFilePaths'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-ToolPath'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-TaskVariable'.
2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Get-VssConnection'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-Ant'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-BatchScript'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-Maven'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-MSBuild'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-PublishSymbols'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-Tool'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-VSTest'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Register-XamarinLicense'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'.
2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Get-X509Certificate'.
2016-12-07T15:27:19.5112409Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.dll'.
2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Complete-Task'.
2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Get-LocalizedString'.
2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Set-TaskVariable'.
2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Set-TaskProgress'.
2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Add-TaskIssue'.
2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Write-TaskDetail'.
2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Find-Files'.
2016-12-07T15:27:19.5424899Z ##[debug]Setting default assembly locations
2016-12-07T15:27:19.6049972Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Client.dll
2016-12-07T15:27:19.6049972Z ##[debug]Setting default assembly locations
2016-12-07T15:27:19.6049972Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Common.dll
2016-12-07T15:27:19.6206175Z ##[debug]Setting default assembly locations
2016-12-07T15:27:19.6206175Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.VersionControl.Client.dll
2016-12-07T15:27:19.6206175Z ##[debug]Setting default assembly locations
2016-12-07T15:27:19.6518969Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.WorkItemTracking.Client.dll
2016-12-07T15:27:19.6518969Z ##[debug]Setting default assembly locations
2016-12-07T15:27:19.6674942Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Diff.dll
2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'.
2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'Get-SourceProvider'.
2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'.
2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'Convert-ToItemSpecs'.
2016-12-07T15:27:19.6674942Z ##[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.
2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'.
2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'Convert-ToItemSpecs'.
2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'Get-SourceProvider'.
2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'.
2016-12-07T15:27:19.6831203Z Checking out ItemSpec: $/Bricks/TFSbuildTasks/mainline/branch.props;$/Bricks/TFSbuildTasks/mainline/Version.cs, Recursive: None
2016-12-07T15:27:19.6987457Z ##[debug]Entering Get-SourceProvider
2016-12-07T15:27:19.7612469Z ##[warning]Server workspace support is experimental.
2016-12-07T15:27:19.7768725Z ##[debug]Leaving Get-SourceProvider
2016-12-07T15:27:19.7925198Z Checkign out: $/Bricks/TFSbuildTasks/mainline/branch.props
2016-12-07T15:27:19.8550029Z Checkign out: $/Bricks/TFSbuildTasks/mainline/Version.cs
2016-12-07T15:27:19.9035232Z ##[debug]Entering Invoke-DisposeSourceProvider
2016-12-07T15:27:19.9035232Z ##[debug]Disposing tfsTeamProjectCollection
2016-12-07T15:27:19.9175597Z ##[debug]Leaving Invoke-DisposeSourceProvider
2016-12-07T15:27:19.9331992Z Finishing task: TFVCCheckout
2016-12-07T15:27:19.9488234Z Starting task: Build solution Build\BuildServer\Gate.PrepareBuild.proj
2016-12-07T15:27:19.9644707Z C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". ([scriptblock]::Create('if (!$PSHOME) { $null = Get-Item -LiteralPath ''variable:PSHOME'' } else { Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Management\Microsoft.PowerShell.Management.psd1'')) ; Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psd1'')) }')) 2>&1 | ForEach-Object { Write-Verbose $_.Exception.Message -Verbose } ; $env:TF_BUILD = 'True' ; Import-Module -Name 'D:\A3\tasks\MSBuild\1.0.26\ps_modules\VstsTaskSdk\VstsTaskSdk.psd1' -ArgumentList @{ NonInteractive = $true } -ErrorAction Stop ; $VerbosePreference = 'Continue' ; $DebugPreference = 'Continue' ; Invoke-VstsTaskScript -ScriptBlock ([scriptblock]::Create('. ''D:\A3\tasks\MSBuild\1.0.26\MSBuild.ps1'''))"
2016-12-07T15:27:26.4246515Z ##[debug]VstsTaskSdk 0.5.5
2016-12-07T15:27:27.0113336Z ##[debug]Entering D:\A3\tasks\MSBuild\1.0.26\MSBuild.ps1.
2016-12-07T15:27:27.0211318Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\Task.json
2016-12-07T15:27:27.0211318Z ##[debug]Loaded 2 strings.
2016-12-07T15:27:27.0211318Z ##[debug]Env:SYSTEM_CULTURE: 'en-US'
2016-12-07T15:27:27.0367748Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\Strings\resources.resjson\en-US\resources.resjson
2016-12-07T15:27:27.0367748Z ##[debug]Loaded 2 strings.
2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_MSBUILDLOCATIONMETHOD: 'version'
2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_MSBUILDLOCATION (empty)
2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_MSBUILDARGUMENTS (empty)
2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_SOLUTION: 'D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj'
2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_PLATFORM: 'Any CPU'
2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_CONFIGURATION: 'Release'
2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_CLEAN: 'false'
2016-12-07T15:27:27.0680258Z ##[debug] Converted to bool: False
2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_RESTORENUGETPACKAGES: 'false'
2016-12-07T15:27:27.0836507Z ##[debug] Converted to bool: False
2016-12-07T15:27:27.0836507Z ##[debug]Env:INPUT_LOGPROJECTEVENTS: 'false'
2016-12-07T15:27:27.0836507Z ##[debug] Converted to bool: False
2016-12-07T15:27:27.0836507Z ##[debug]Env:INPUT_MSBUILDVERSION: '14.0'
2016-12-07T15:27:27.0836507Z ##[debug]Env:INPUT_MSBUILDARCHITECTURE: 'x86'
2016-12-07T15:27:27.6717520Z ##[debug]Loading module from path 'D:\A3\tasks\MSBuild\1.0.26\ps_modules\MSBuildHelpers\MSBuildHelpers.psm1'.
2016-12-07T15:27:28.2364178Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\ps_modules\MSBuildHelpers\module.json
2016-12-07T15:27:28.2364178Z ##[debug]Loaded 3 strings.
2016-12-07T15:27:28.2520452Z ##[debug]Env:SYSTEM_CULTURE: 'en-US'
2016-12-07T15:27:28.2520452Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\ps_modules\MSBuildHelpers\Strings\resources.resjson\en-US\resources.resjson
2016-12-07T15:27:28.2676895Z ##[debug]Loaded 3 strings.
2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Format-MSBuildArguments'.
2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Invoke-BuildTools'.
2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Get-MSBuildPath'.
2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Get-SolutionFiles'.
2016-12-07T15:27:29.9630562Z ##[debug]Importing function 'Format-MSBuildArguments'.
2016-12-07T15:27:29.9786761Z ##[debug]Importing function 'Get-MSBuildPath'.
2016-12-07T15:27:29.9786761Z ##[debug]Importing function 'Get-SolutionFiles'.
2016-12-07T15:27:29.9786761Z ##[debug]Importing function 'Invoke-BuildTools'.
2016-12-07T15:27:29.9944033Z ##[debug]Entering Get-SolutionFiles.
2016-12-07T15:27:29.9944033Z ##[debug] Solution: 'D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj'
2016-12-07T15:27:30.0099331Z ##[debug]Leaving Get-SolutionFiles.
2016-12-07T15:27:30.0099331Z ##[debug]Entering Format-MSBuildArguments.
2016-12-07T15:27:30.0099331Z ##[debug] MSBuildArguments: ''
2016-12-07T15:27:30.0255586Z ##[debug] Platform: 'Any CPU'
2016-12-07T15:27:30.0255586Z ##[debug] Configuration: 'Release'
2016-12-07T15:27:30.0255586Z ##[debug]Leaving Format-MSBuildArguments.
2016-12-07T15:27:30.0412024Z ##[debug]Entering Select-MSBuildLocation.
2016-12-07T15:27:30.0412024Z ##[debug] Method: 'version'
2016-12-07T15:27:30.0412024Z ##[debug] Location: ''
2016-12-07T15:27:30.0412024Z ##[debug] Version: '14.0'
2016-12-07T15:27:30.0412024Z ##[debug] Architecture: 'x86'
2016-12-07T15:27:30.0568077Z ##[debug]Entering Get-MSBuildPath.
2016-12-07T15:27:30.0568077Z ##[debug] Version: '14.0'
2016-12-07T15:27:30.0568077Z ##[debug] Architecture: 'x86'
2016-12-07T15:27:30.1349360Z ##[debug]MSBuild: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
2016-12-07T15:27:30.1349360Z ##[debug]Leaving Get-MSBuildPath.
2016-12-07T15:27:30.1349360Z ##[debug]Leaving Select-MSBuildLocation.
2016-12-07T15:27:30.1505608Z ##[debug]Entering Invoke-BuildTools.
2016-12-07T15:27:30.1505608Z ##[debug] NuGetRestore: 'False'
2016-12-07T15:27:30.1505608Z ##[debug] SolutionFiles: 'D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj'
2016-12-07T15:27:30.1664087Z ##[debug] MSBuildLocation: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
2016-12-07T15:27:30.1664087Z ##[debug] MSBuildArguments: ' /p:platform="Any CPU" /p:configuration="Release"'
2016-12-07T15:27:30.1664087Z ##[debug] Clean: 'False'
2016-12-07T15:27:30.1664087Z ##[debug] NoTimelineLogger: 'True'
2016-12-07T15:27:30.1818081Z ##[debug]Entering Invoke-MSBuild.
2016-12-07T15:27:30.1818081Z ##[debug] ProjectFile: 'D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj'
2016-12-07T15:27:30.1818081Z ##[debug] LogFile: 'D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj.log'
2016-12-07T15:27:30.1818081Z ##[debug] MSBuildPath: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
2016-12-07T15:27:30.1818081Z ##[debug] AdditionalArguments: ' /p:platform="Any CPU" /p:configuration="Release"'
2016-12-07T15:27:30.1818081Z ##[debug] NoTimelineLogger: 'True'
2016-12-07T15:27:30.1974417Z ##[debug]Asserting leaf path exists: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
2016-12-07T15:27:30.2130832Z ##[debug]Env:AGENT_HOMEDIRECTORY: 'D:\A3'
2016-12-07T15:27:30.2130832Z ##[debug]Asserting leaf path exists: 'D:\A3\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll'
2016-12-07T15:27:30.2130832Z ##[debug]Entering Invoke-VstsTool.
2016-12-07T15:27:30.2130832Z ##[debug] FileName: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
2016-12-07T15:27:30.2286884Z ##[debug] Arguments: '"D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj" /nologo /m /nr:false /fl /flp:"logfile=D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj.log" /dl:CentralLogger,"D:\A3\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"D:\A3\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="Any CPU" /p:configuration="Release"'
2016-12-07T15:27:30.2286884Z ##[debug] RequireExitCodeZero: 'True'
2016-12-07T15:27:30.3287017Z Build started 12/7/2016 4:27:30 PM.
2016-12-07T15:27:30.3912194Z 1>Project "D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj" on node 1 (default targets).
...
2016-12-07T15:27:31.0829467Z 1>Done Building Project "D:\A3\_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj" (default targets).
2016-12-07T15:27:31.0829467Z Build succeeded.
2016-12-07T15:27:31.0829467Z 0 Warning(s)
2016-12-07T15:27:31.0829467Z 0 Error(s)
2016-12-07T15:27:31.0829467Z Time Elapsed 00:00:00.39
2016-12-07T15:27:31.0829467Z ##[debug]Exit code: 0
2016-12-07T15:27:31.0829467Z ##[debug]Leaving Invoke-VstsTool.
2016-12-07T15:27:31.0985720Z ##[debug]Leaving Invoke-MSBuild.
2016-12-07T15:27:31.0985720Z ##[debug]Leaving Invoke-BuildTools.
2016-12-07T15:27:31.0985720Z ##[debug]Leaving D:\A3\tasks\MSBuild\1.0.26\MSBuild.ps1.
2016-12-07T15:27:31.0985720Z Finishing task: MSBuild
2016-12-07T15:27:31.1298257Z Starting task: Update gated changes
2016-12-07T15:27:31.1298257Z Set workingFolder to default: D:\A3\tasks\TFVCUpdateShelveset\1.1.1238
2016-12-07T15:27:31.1298257Z Executing the powershell script: D:\A3\tasks\TFVCUpdateShelveset\1.1.1238\TfvcUpdateShelveset.ps1
2016-12-07T15:27:31.2079483Z ##[debug]Entering script TfvcUpdateShelveset.ps1
2016-12-07T15:27:31.2079483Z ##[debug]Parameter Values
2016-12-07T15:27:31.2079483Z ##[debug]Itemspec = $/Bricks/TFSbuildTasks/mainline/branch.props;$/Bricks/TFSbuildTasks/mainline/Version.cs
2016-12-07T15:27:31.2079483Z ##[debug]Recursion = None
2016-12-07T15:27:31.2079483Z ##[debug]AutoDetectAdds = false
2016-12-07T15:27:31.2079483Z ##[debug]AutoDetectDeletes = false
2016-12-07T15:27:31.2079483Z ##[debug]SkipNonGated = true
2016-12-07T15:27:31.2079483Z ##[debug]Importing modules
2016-12-07T15:27:31.2079483Z ##[debug]Loading module from path 'D:\A3\tasks\TFVCUpdateShelveset\1.1.1238\vsts-tfvc-shared.psm1'.
2016-12-07T15:27:31.2079483Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.dll'.
2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Add-BuildAttachment'.
2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Convert-String'.
2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Get-IndexedSourceFilePaths'.
2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-ToolPath'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-TaskVariable'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-VssConnection'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-Ant'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-BatchScript'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-Maven'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-MSBuild'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-PublishSymbols'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-Tool'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-VSTest'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Register-XamarinLicense'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'.
2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-X509Certificate'.
2016-12-07T15:27:31.2391996Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.dll'.
2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Complete-Task'.
2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Get-LocalizedString'.
2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Set-TaskVariable'.
2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Set-TaskProgress'.
2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Add-TaskIssue'.
2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Write-TaskDetail'.
2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Find-Files'.
2016-12-07T15:27:31.2548267Z ##[debug]Setting default assembly locations
2016-12-07T15:27:31.2548267Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Client.dll
2016-12-07T15:27:31.2704520Z ##[debug]Setting default assembly locations
2016-12-07T15:27:31.2704520Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Common.dll
2016-12-07T15:27:31.2704520Z ##[debug]Setting default assembly locations
2016-12-07T15:27:31.2704520Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.VersionControl.Client.dll
2016-12-07T15:27:31.2704520Z ##[debug]Setting default assembly locations
2016-12-07T15:27:31.2704520Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.WorkItemTracking.Client.dll
2016-12-07T15:27:31.2860775Z ##[debug]Setting default assembly locations
2016-12-07T15:27:31.2860775Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Diff.dll
2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'.
2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'Get-SourceProvider'.
2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'.
2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'Convert-ToItemSpecs'.
2016-12-07T15:27:31.2860775Z ##[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.
2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'.
2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'Convert-ToItemSpecs'.
2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'Get-SourceProvider'.
2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'.
2016-12-07T15:27:31.3017045Z ##[debug]Entering Get-SourceProvider
2016-12-07T15:27:31.3173283Z ##[warning]Server workspace support is experimental.
2016-12-07T15:27:31.3173283Z ##[debug]Leaving Get-SourceProvider
2016-12-07T15:27:31.6142126Z Updating shelveset (_Build_59094;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc) with local changes.
2016-12-07T15:27:31.8087379Z Done.
2016-12-07T15:27:31.8087379Z ##[debug]Entering Invoke-DisposeSourceProvider
2016-12-07T15:27:31.8087379Z ##[debug]Disposing tfsTeamProjectCollection
2016-12-07T15:27:31.8087379Z ##[debug]Leaving Invoke-DisposeSourceProvider
2016-12-07T15:27:31.8087379Z Finishing task: TFVCUpdateShelveset
2016-12-07T15:27:31.8087379Z Entering OnFinalizeJob
2016-12-07T15:27:31.8087379Z Leaving OnFinalizeJob
Thanks for the pull request. It's been a busy couple of days.
Yeah I was afraid of that. I haven't figured out yet how to grab the 'previously selected changes'.
I'll probably need to dig though the way that's implemented in tf.exe.
On Dec 7, 2016 16:38, "Christoph Lindemann" notifications@github.com wrote:
After fixing the Write-Waring issue, the check-out task can check-out files.
However, the following Update Shelveset clears the shelve and only includes the files from the Check-out task. The items from the initial gate shelve are not included.
So we are getting closer, but we are not there yet.
Here the log:
2016-12-07T15:27:16.0552677Z Entering OnPrepareEnvironment 2016-12-07T15:27:16.0865207Z Primary repository: Bricks 2016-12-07T15:27:16.0865207Z Calculating build folder hash key. 2016-12-07T15:27:16.0865207Z Loading tracking config if exists: D:\A3_work\SourceRootMapping\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc\343\SourceFolder.json 2016-12-07T15:27:16.0865207Z Parsing tracking config file version 2 format. 2016-12-07T15:27:16.1021466Z Writing config to file: D:\A3_work\SourceRootMapping\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc\343\SourceFolder.json 2016-12-07T15:27:16.1490224Z Checking if artifacts directory exists: D:\A3_work\2\a 2016-12-07T15:27:16.1490224Z Deleting artifacts directory. 2016-12-07T15:27:16.1646463Z Creating artifacts directory. 2016-12-07T15:27:16.1646463Z Checking if test results directory exists: D:\A3_work\2\TestResults 2016-12-07T15:27:16.1646463Z Deleting test results directory. 2016-12-07T15:27:16.1646463Z Creating test results directory. 2016-12-07T15:27:16.1646463Z Setting local variables. 2016-12-07T15:27:16.1646463Z Create the initial timeline records for the tasks 2016-12-07T15:27:16.1646463Z Preparing repositories 2016-12-07T15:27:16.1646463Z repo clean = False 2016-12-07T15:27:16.1646463Z Found 2 endpoints to consider 2016-12-07T15:27:16.1802724Z Found 1 repositories to sync 2016-12-07T15:27:16.1958997Z Starting: Get sources 2016-12-07T15:27:16.1958997Z build.fetchtags=false 2016-12-07T15:27:16.1958997Z Entering TfvcSourceProvider.PrepareRepositoryAsync 2016-12-07T15:27:16.2115231Z localPath=D:\A3_work\2\s 2016-12-07T15:27:16.2115231Z clean=False 2016-12-07T15:27:16.2115231Z sourceVersion=63621 2016-12-07T15:27:16.2115231Z mappingJson={"mappings":[{"serverPath":"$/Bricks/TFSbuildTasks/mainline","mappingType":"map","localPath":"\"}]} 2016-12-07T15:27:16.2115231Z Syncing repository: Bricks (TFVC) 2016-12-07T15:27:16.2115231Z workspaceName=ws_2_2 2016-12-07T15:27:17.0601006Z Workspace Name: ws_2_2;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc 2016-12-07T15:27:17.1069926Z tf undo 2016-12-07T15:27:17.5179719Z Undoing edit: D:\A3_work\2\s\gate.trigger.file.txt 2016-12-07T15:27:17.6273510Z tf unshelve Gated_2016-12-07_04.27.10.1631;FOSS\CLIN 2016-12-07T15:27:18.3547896Z $/Bricks/TFSbuildTasks/mainline/gate.trigger.file.txt: Warning: There are other pending changes against the item. 2016-12-07T15:27:18.3547896Z edit: D:\A3_work\2\s\gate.trigger.file.txt 2016-12-07T15:27:18.3703951Z Successfully unshelved Gated_2016-12-07_04.27.10.1631;FOSS\CLIN into workspace ws_2_2;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc 2016-12-07T15:27:18.3703951Z tf get /version:63621 2016-12-07T15:27:18.8549937Z tf shelve _Build_59094 /replace 2016-12-07T15:27:18.9174907Z Successfully created new shelveset _Build59094;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc 2016-12-07T15:27:19.0581215Z Done syncing repository Bricks to version 63621 (workspace version C63621) 2016-12-07T15:27:19.0581215Z Leaving TfvcSourceProvider.PrepareRepositoryAsync 2016-12-07T15:27:19.0737266Z Leaving OnPrepareEnvironment 2016-12-07T15:27:19.1831049Z Running tasks 2016-12-07T15:27:19.1987290Z Starting task: Checking out files from source control 2016-12-07T15:27:19.2299807Z Set workingFolder to default: D:\A3\tasks\TFVCCheckout\1.1.1238 2016-12-07T15:27:19.2612513Z Executing the powershell script: D:\A3\tasks\TFVCCheckout\1.1.1238\TfvcCheckout.ps1 2016-12-07T15:27:19.4331137Z ##[debug]Entering script TfvcCheckout.ps1 2016-12-07T15:27:19.4331137Z ##[debug]Parameter Values 2016-12-07T15:27:19.4487372Z ##[debug]Itemspec = $/Bricks/TFSbuildTasks/mainline/branch.props;$/Bricks/TFSbuildTasks/mainline/Version.cs 2016-12-07T15:27:19.4487372Z ##[debug]Recursion = None 2016-12-07T15:27:19.4487372Z ##[debug]Importing modules 2016-12-07T15:27:19.4643635Z ##[debug]Loading module from path 'D:\A3\tasks\TFVCCheckout\1.1.1238\vsts-tfvc-shared.psm1'. 2016-12-07T15:27:19.4643635Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.dll'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Convert-String'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-IndexedSourceFilePaths'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2016-12-07T15:27:19.4643635Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-PublishSymbols'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2016-12-07T15:27:19.4799880Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2016-12-07T15:27:19.5112409Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.dll'. 2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Complete-Task'. 2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2016-12-07T15:27:19.5112409Z ##[debug]Importing cmdlet 'Find-Files'. 2016-12-07T15:27:19.5424899Z ##[debug]Setting default assembly locations 2016-12-07T15:27:19.6049972Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Client.dll 2016-12-07T15:27:19.6049972Z ##[debug]Setting default assembly locations 2016-12-07T15:27:19.6049972Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Common.dll 2016-12-07T15:27:19.6206175Z ##[debug]Setting default assembly locations 2016-12-07T15:27:19.6206175Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.VersionControl.Client.dll 2016-12-07T15:27:19.6206175Z ##[debug]Setting default assembly locations 2016-12-07T15:27:19.6518969Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.WorkItemTracking.Client.dll 2016-12-07T15:27:19.6518969Z ##[debug]Setting default assembly locations 2016-12-07T15:27:19.6674942Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Diff.dll 2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'. 2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'Get-SourceProvider'. 2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'. 2016-12-07T15:27:19.6674942Z ##[debug]Exporting function 'Convert-ToItemSpecs'. 2016-12-07T15:27:19.6674942Z ##[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. 2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'. 2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'Convert-ToItemSpecs'. 2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'Get-SourceProvider'. 2016-12-07T15:27:19.6674942Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'. 2016-12-07T15:27:19.6831203Z Checking out ItemSpec: $/Bricks/TFSbuildTasks/mainline/branch.props;$/Bricks/TFSbuildTasks/mainline/Version.cs, Recursive: None 2016-12-07T15:27:19.6987457Z ##[debug]Entering Get-SourceProvider 2016-12-07T15:27:19.7612469Z ##[warning]Server workspace support is experimental. 2016-12-07T15:27:19.7768725Z ##[debug]Leaving Get-SourceProvider 2016-12-07T15:27:19.7925198Z Checkign out: $/Bricks/TFSbuildTasks/mainline/branch.props 2016-12-07T15:27:19.8550029Z Checkign out: $/Bricks/TFSbuildTasks/mainline/Version.cs 2016-12-07T15:27:19.9035232Z ##[debug]Entering Invoke-DisposeSourceProvider 2016-12-07T15:27:19.9035232Z ##[debug]Disposing tfsTeamProjectCollection 2016-12-07T15:27:19.9175597Z ##[debug]Leaving Invoke-DisposeSourceProvider 2016-12-07T15:27:19.9331992Z Finishing task: TFVCCheckout 2016-12-07T15:27:19.9488234Z Starting task: Build solution Build\BuildServer\Gate.PrepareBuild.proj 2016-12-07T15:27:19.9644707Z C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". ([scriptblock]::Create('if (!$PSHOME) { $null = Get-Item -LiteralPath ''variable:PSHOME'' } else { Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Management\Microsoft.PowerShell.Management.psd1'')) ; Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psd1'')) }')) 2>&1 | ForEach-Object { Write-Verbose $.Exception.Message -Verbose } ; $env:TF_BUILD = 'True' ; Import-Module -Name 'D:\A3\tasks\MSBuild\1.0.26\ps_modules\VstsTaskSdk\VstsTaskSdk.psd1' -ArgumentList @{ NonInteractive = $true } -ErrorAction Stop ; $VerbosePreference = 'Continue' ; $DebugPreference = 'Continue' ; Invoke-VstsTaskScript -ScriptBlock ([scriptblock]::Create('. ''D:\A3\tasks\MSBuild\1.0.26\MSBuild.ps1'''))" 2016-12-07T15:27:26.4246515Z ##[debug]VstsTaskSdk 0.5.5 2016-12-07T15:27:27.0113336Z ##[debug]Entering D:\A3\tasks\MSBuild\1.0.26\MSBuild.ps1. 2016-12-07T15:27:27.0211318Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\Task.json 2016-12-07T15:27:27.0211318Z ##[debug]Loaded 2 strings. 2016-12-07T15:27:27.0211318Z ##[debug]Env:SYSTEM_CULTURE: 'en-US' 2016-12-07T15:27:27.0367748Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\Strings\resources.resjson\en-US\resources.resjson 2016-12-07T15:27:27.0367748Z ##[debug]Loaded 2 strings. 2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_MSBUILDLOCATIONMETHOD: 'version' 2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_MSBUILDLOCATION (empty) 2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_MSBUILDARGUMENTS (empty) 2016-12-07T15:27:27.0524001Z ##[debug]Env:INPUT_SOLUTION: 'D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj' 2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_PLATFORM: 'Any CPU' 2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_CONFIGURATION: 'Release' 2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_CLEAN: 'false' 2016-12-07T15:27:27.0680258Z ##[debug] Converted to bool: False 2016-12-07T15:27:27.0680258Z ##[debug]Env:INPUT_RESTORENUGETPACKAGES: 'false' 2016-12-07T15:27:27.0836507Z ##[debug] Converted to bool: False 2016-12-07T15:27:27.0836507Z ##[debug]Env:INPUT_LOGPROJECTEVENTS: 'false' 2016-12-07T15:27:27.0836507Z ##[debug] Converted to bool: False 2016-12-07T15:27:27.0836507Z ##[debug]Env:INPUT_MSBUILDVERSION: '14.0' 2016-12-07T15:27:27.0836507Z ##[debug]Env:INPUT_MSBUILDARCHITECTURE: 'x86' 2016-12-07T15:27:27.6717520Z ##[debug]Loading module from path 'D:\A3\tasks\MSBuild\1.0.26\ps_modules\MSBuildHelpers\MSBuildHelpers.psm1'. 2016-12-07T15:27:28.2364178Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\ps_modules\MSBuildHelpers\module.json 2016-12-07T15:27:28.2364178Z ##[debug]Loaded 3 strings. 2016-12-07T15:27:28.2520452Z ##[debug]Env:SYSTEM_CULTURE: 'en-US' 2016-12-07T15:27:28.2520452Z ##[debug]Loading resource strings from: D:\A3\tasks\MSBuild\1.0.26\ps_modules\MSBuildHelpers\Strings\resources.resjson\en-US\resources.resjson 2016-12-07T15:27:28.2676895Z ##[debug]Loaded 3 strings. 2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Format-MSBuildArguments'. 2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Invoke-BuildTools'. 2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Get-MSBuildPath'. 2016-12-07T15:27:29.9630562Z ##[debug]Exporting function 'Get-SolutionFiles'. 2016-12-07T15:27:29.9630562Z ##[debug]Importing function 'Format-MSBuildArguments'. 2016-12-07T15:27:29.9786761Z ##[debug]Importing function 'Get-MSBuildPath'. 2016-12-07T15:27:29.9786761Z ##[debug]Importing function 'Get-SolutionFiles'. 2016-12-07T15:27:29.9786761Z ##[debug]Importing function 'Invoke-BuildTools'. 2016-12-07T15:27:29.9944033Z ##[debug]Entering Get-SolutionFiles. 2016-12-07T15:27:29.9944033Z ##[debug] Solution: 'D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj' 2016-12-07T15:27:30.0099331Z ##[debug]Leaving Get-SolutionFiles. 2016-12-07T15:27:30.0099331Z ##[debug]Entering Format-MSBuildArguments. 2016-12-07T15:27:30.0099331Z ##[debug] MSBuildArguments: '' 2016-12-07T15:27:30.0255586Z ##[debug] Platform: 'Any CPU' 2016-12-07T15:27:30.0255586Z ##[debug] Configuration: 'Release' 2016-12-07T15:27:30.0255586Z ##[debug]Leaving Format-MSBuildArguments. 2016-12-07T15:27:30.0412024Z ##[debug]Entering Select-MSBuildLocation. 2016-12-07T15:27:30.0412024Z ##[debug] Method: 'version' 2016-12-07T15:27:30.0412024Z ##[debug] Location: '' 2016-12-07T15:27:30.0412024Z ##[debug] Version: '14.0' 2016-12-07T15:27:30.0412024Z ##[debug] Architecture: 'x86' 2016-12-07T15:27:30.0568077Z ##[debug]Entering Get-MSBuildPath. 2016-12-07T15:27:30.0568077Z ##[debug] Version: '14.0' 2016-12-07T15:27:30.0568077Z ##[debug] Architecture: 'x86' 2016-12-07T15:27:30.1349360Z ##[debug]MSBuild: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe 2016-12-07T15:27:30.1349360Z ##[debug]Leaving Get-MSBuildPath. 2016-12-07T15:27:30.1349360Z ##[debug]Leaving Select-MSBuildLocation. 2016-12-07T15:27:30.1505608Z ##[debug]Entering Invoke-BuildTools. 2016-12-07T15:27:30.1505608Z ##[debug] NuGetRestore: 'False' 2016-12-07T15:27:30.1505608Z ##[debug] SolutionFiles: 'D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj' 2016-12-07T15:27:30.1664087Z ##[debug] MSBuildLocation: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe' 2016-12-07T15:27:30.1664087Z ##[debug] MSBuildArguments: ' /p:platform="Any CPU" /p:configuration="Release"' 2016-12-07T15:27:30.1664087Z ##[debug] Clean: 'False' 2016-12-07T15:27:30.1664087Z ##[debug] NoTimelineLogger: 'True' 2016-12-07T15:27:30.1818081Z ##[debug]Entering Invoke-MSBuild. 2016-12-07T15:27:30.1818081Z ##[debug] ProjectFile: 'D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj' 2016-12-07T15:27:30.1818081Z ##[debug] LogFile: 'D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj.log' 2016-12-07T15:27:30.1818081Z ##[debug] MSBuildPath: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe' 2016-12-07T15:27:30.1818081Z ##[debug] AdditionalArguments: ' /p:platform="Any CPU" /p:configuration="Release"' 2016-12-07T15:27:30.1818081Z ##[debug] NoTimelineLogger: 'True' 2016-12-07T15:27:30.1974417Z ##[debug]Asserting leaf path exists: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe' 2016-12-07T15:27:30.2130832Z ##[debug]Env:AGENT_HOMEDIRECTORY: 'D:\A3' 2016-12-07T15:27:30.2130832Z ##[debug]Asserting leaf path exists: 'D:\A3\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll' 2016-12-07T15:27:30.2130832Z ##[debug]Entering Invoke-VstsTool. 2016-12-07T15:27:30.2130832Z ##[debug] FileName: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe' 2016-12-07T15:27:30.2286884Z ##[debug] Arguments: '"D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj" /nologo /m /nr:false /fl /flp:"logfile=D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj.log" /dl:CentralLogger,"D:\A3\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"D:\A3\Agent\Worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="Any CPU" /p:configuration="Release"' 2016-12-07T15:27:30.2286884Z ##[debug] RequireExitCodeZero: 'True' 2016-12-07T15:27:30.3287017Z Build started 12/7/2016 4:27:30 PM. 2016-12-07T15:27:30.3912194Z 1>Project "D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj" on node 1 (default targets). ... 2016-12-07T15:27:31.0829467Z 1>Done Building Project "D:\A3_work\2\s\Build\BuildServer\Gate.PrepareBuild.proj" (default targets). 2016-12-07T15:27:31.0829467Z Build succeeded. 2016-12-07T15:27:31.0829467Z 0 Warning(s) 2016-12-07T15:27:31.0829467Z 0 Error(s) 2016-12-07T15:27:31.0829467Z Time Elapsed 00:00:00.39 2016-12-07T15:27:31.0829467Z ##[debug]Exit code: 0 2016-12-07T15:27:31.0829467Z ##[debug]Leaving Invoke-VstsTool. 2016-12-07T15:27:31.0985720Z ##[debug]Leaving Invoke-MSBuild. 2016-12-07T15:27:31.0985720Z ##[debug]Leaving Invoke-BuildTools. 2016-12-07T15:27:31.0985720Z ##[debug]Leaving D:\A3\tasks\MSBuild\1.0.26\MSBuild.ps1. 2016-12-07T15:27:31.0985720Z Finishing task: MSBuild 2016-12-07T15:27:31.1298257Z Starting task: Update gated changes 2016-12-07T15:27:31.1298257Z Set workingFolder to default: D:\A3\tasks\TFVCUpdateShelveset\1.1.1238 2016-12-07T15:27:31.1298257Z Executing the powershell script: D:\A3\tasks\TFVCUpdateShelveset\1.1.1238\TfvcUpdateShelveset.ps1 2016-12-07T15:27:31.2079483Z ##[debug]Entering script TfvcUpdateShelveset.ps1 2016-12-07T15:27:31.2079483Z ##[debug]Parameter Values 2016-12-07T15:27:31.2079483Z ##[debug]Itemspec = $/Bricks/TFSbuildTasks/mainline/branch.props;$/Bricks/TFSbuildTasks/mainline/Version.cs 2016-12-07T15:27:31.2079483Z ##[debug]Recursion = None 2016-12-07T15:27:31.2079483Z ##[debug]AutoDetectAdds = false 2016-12-07T15:27:31.2079483Z ##[debug]AutoDetectDeletes = false 2016-12-07T15:27:31.2079483Z ##[debug]SkipNonGated = true 2016-12-07T15:27:31.2079483Z ##[debug]Importing modules 2016-12-07T15:27:31.2079483Z ##[debug]Loading module from path 'D:\A3\tasks\TFVCUpdateShelveset\1.1.1238\vsts-tfvc-shared.psm1'. 2016-12-07T15:27:31.2079483Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Internal\Microsoft.TeamFoundation.DistributedTask.Task.Internal.dll'. 2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Add-BuildAttachment'. 2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Convert-String'. 2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Get-IndexedSourceFilePaths'. 2016-12-07T15:27:31.2079483Z ##[debug]Importing cmdlet 'Get-JavaDevelopmentKitPath'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-MSBuildLocation'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-ServiceEndpoint'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-TfsClientCredentials'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-ToolPath'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-TaskVariable'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-VisualStudioPath'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-VssConnection'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-Ant'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-BatchScript'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-Maven'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-MSBuild'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-PublishSymbols'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-Tool'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Invoke-VSTest'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Publish-BuildArtifact'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Copy-BuildArtifact'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Add-BuildArtifactLink'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Register-XamarinLicense'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Unregister-XamarinLicense'. 2016-12-07T15:27:31.2235744Z ##[debug]Importing cmdlet 'Get-X509Certificate'. 2016-12-07T15:27:31.2391996Z ##[debug]Loading module from path 'D:\A3\agent\worker\Modules\Microsoft.TeamFoundation.DistributedTask.Task.Common\Microsoft.TeamFoundation.DistributedTask.Task.Common.dll'. 2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Complete-Task'. 2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Get-LocalizedString'. 2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Set-TaskVariable'. 2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Set-TaskProgress'. 2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Add-TaskIssue'. 2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Write-TaskDetail'. 2016-12-07T15:27:31.2391996Z ##[debug]Importing cmdlet 'Find-Files'. 2016-12-07T15:27:31.2548267Z ##[debug]Setting default assembly locations 2016-12-07T15:27:31.2548267Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Client.dll 2016-12-07T15:27:31.2704520Z ##[debug]Setting default assembly locations 2016-12-07T15:27:31.2704520Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Common.dll 2016-12-07T15:27:31.2704520Z ##[debug]Setting default assembly locations 2016-12-07T15:27:31.2704520Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.VersionControl.Client.dll 2016-12-07T15:27:31.2704520Z ##[debug]Setting default assembly locations 2016-12-07T15:27:31.2704520Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.WorkItemTracking.Client.dll 2016-12-07T15:27:31.2860775Z ##[debug]Setting default assembly locations 2016-12-07T15:27:31.2860775Z ##[debug]Loading assembly: D:\A3\Agent\Worker\Microsoft.TeamFoundation.Diff.dll 2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'Invoke-DisposeSourceProvider'. 2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'Get-SourceProvider'. 2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'AutoPend-WorkspaceChanges'. 2016-12-07T15:27:31.2860775Z ##[debug]Exporting function 'Convert-ToItemSpecs'. 2016-12-07T15:27:31.2860775Z ##[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. 2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'AutoPend-WorkspaceChanges'. 2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'Convert-ToItemSpecs'. 2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'Get-SourceProvider'. 2016-12-07T15:27:31.2860775Z ##[debug]Importing function 'Invoke-DisposeSourceProvider'. 2016-12-07T15:27:31.3017045Z ##[debug]Entering Get-SourceProvider 2016-12-07T15:27:31.3173283Z ##[warning]Server workspace support is experimental. 2016-12-07T15:27:31.3173283Z ##[debug]Leaving Get-SourceProvider 2016-12-07T15:27:31.6142126Z Updating shelveset (_Build_59094;Build\fceb4ce7-c6a7-4b16-8941-c6ce2f9c24bc) with local changes. 2016-12-07T15:27:31.8087379Z Done. 2016-12-07T15:27:31.8087379Z ##[debug]Entering Invoke-DisposeSourceProvider 2016-12-07T15:27:31.8087379Z ##[debug]Disposing tfsTeamProjectCollection 2016-12-07T15:27:31.8087379Z ##[debug]Leaving Invoke-DisposeSourceProvider 2016-12-07T15:27:31.8087379Z Finishing task: TFVCUpdateShelveset 2016-12-07T15:27:31.8087379Z Entering OnFinalizeJob 2016-12-07T15:27:31.8087379Z Leaving OnFinalizeJob
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jessehouwing/vsts-tfvc-tasks/issues/37#issuecomment-265480147, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS4FczZeqHs_WYqtNAq9jma-pEMnQks5rFtL1gaJpZM4K_UBY .
I've decided not to implement this. I'm open to a pull request, but for now the 2.0 agent which is default for VSTS and TFS 2017 has standardized on local workspaces.
I am trying to use the
vsts-tfvc-updateshelveset
task version1.1.1025
The task completes sucessfully, but TFS fails to check-in the shelveset:
[Error]No changes checked in
When I look at the shelveset_Build_79861;Build\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
the shelveset is empty. It still contains the workitem references and the comment.(If I do not run the vsts-tfvc-updateshelveset task, the shelveset includes the files that triggered the gate)
Setup
$/xxxx/xxxx/1.x/branch.props;$/xxxx/xxxx/1.x/Version.cs
None
true
false
false
Build setup output
vsts-tfvc-updateshelveset output
Check in gated changes output