We are in the progress of upgrading from TFS2013 to TFS2018. I have decided to re-create our XAML build definitions in VSTS (on-premise).
All is going well and I am able to replicate all the existing steps as required.
Our Agent is installed to c:\Agent using c:\Agent\Builds. However, I started with one definition, using MSBuild, this created a sub folder c:\Agents\Builds\1 with the a, b & s folders within as expected. All was well.
I then cloned this build to create my next, amending the required properties. This is where I ran into problems.
The new build created a new sub folder c:\Agent\Builds\2!
In TFS2013 XAML builds the "1" folder dictated the build controller number. With VSTS I only have 1 build agent so I expected to have the "1" folder re-used for all build definitions. All of my references to the build folder is via $(build.sourcesDirectory). My workspace mapping uses $(build.sourcesDirectory)$(build.sourcesDirectory) as the local path so each build uses a seperate sub folder. $(build.sourcesDirectory) seems to include the numbered folder.
What can I do to get all my build definitions to create in the same sub folder?
I have gone through all of the properties and even exported the definition to json to look in the source for references to the numbered folder.