MSFT. Sure , here is the sample.
For now we are using XAML Build Definition.
For example i did a change and have changeset 24000 for it.
My object is only DIS/BR-DEV/csv/my-test.inc.
After triggering the build with Clean Workspace set to "Output" in result with Build Defaults setting:
Copy build output to the following drop folder C\TEST , i had a new folder in C\TEST\$(Build.BuildNumber)\csv\my-test.inc ( it is ignoring DIS/BR-DEV as it is specified in Build Template ).
So no i'm trying to build the same functionality using Build Definitions. I'm using "Copy Files" build step for that.
I'm specifying in Source Folder = $(Build.SourcesDirectory) ; Target Folder = D:\BuildAgent_work\1\$(Build.BuildNumber).
And the question is in Content field. I'm not able to specify to copy only my changes. It has next patterns :Specify minimatch pattern filters (one on each line) that you want to apply to the list of files to be copied. For example:
- copies all files in the root folder.
*** copies all files in the root folder and all files in all sub-folders.
**\bin** copies all files recursively from any bin folder.
So using this patterns i will not be able to get dynamically based on changeset# my changes.
I also tried to specify C24000 when i'm triggering the build but it just adding it in source folder and that is all.
I'm expecting to see in my Target Folder = D:\BuildAgent_work\1\$(Build.BuildNumber) my my-test.inc.