In my tfs build I\'ve created an argument to which I pass in $(TF_BUILD_BUILDDIRECTORY)
Then in my xaml file I\'ve added a variable called \"test1\
Refer to the last paragraph in this MSDN document:
Use environment data from a custom build process
If you need to use an environment variable in your custom build process template, you can use the
GetEnvironmentVariableactivity to get the data. You can get data from any of the WellKnownEnvironmentVariables.For example, to get the path to the binaries directory, set the Name property of the
GetEnvironmentVariableactivity toMicrosoft.TeamFoundation.Build.Activities.Extensions.WellKnownEnvironmentVariables.BinariesDirectory
Please follow the below steps:
GetEnvironmentVariable (String) activity, set Name = Microsoft.TeamFoundation.Build.Activities.Extensions.WellKnownEnvironmentVariables.BinariesDirectory
and Result = BINARIESDIRECTORYCopyDirectory activity, set Source = BINARIESDIRECTORY and
Destination = “\servername\drop”