I have been using the file from the teamcity.build.changedFiles.file property to get a list of files with certain extensions that have changed (These files need additional processing that TeamCity does not support).
According to the documentation (found here: http://confluence.jetbrains.net/display/TCD7/Risk+Tests+Reordering+in+Custom+Test+Runner), this file should have the following format: <relative file path>:<change type>:<revision>
This has worked flawlessly for all of my testing, but I ran into an issue today where it appears that the Full file path was used instead of the Relative file path.
Here's the basic setup:
I have a Visual SourceSafe VCS Root setup to the project $/Load Files. This VCS Root has a Checkout rule, +:.=>Load_Files.
In cases where this has worked, the teamcity.build.changedFiles.file
has had entries like this:
When I got the error today, the teamcity.build.changedFiles.file
had entries like this:
Load_Files/$/Load Files/007 - graph and view def.dwh:ADDED:1
Does anyone know why TeamCity used the Full path instead of the relative path? I can "handle" this later on by throwing an error, but that will fail the build. I would like to know why TeamCity used the full path to see if it's something I can prevent from happening at all.
As always, thanks for the help.