TeamCity, how to get names of the files edited
teamcity, version-control
Solution
To get the names of the files changed this is what I did. Thanks to Sam Jones.
I used `System.TeamCity.build.changedFiles.file` variable as follows.
- Add a command line build step
- Select Run as Custom Script
- Add the script `copy "%system.teamcity.build.changedFiles.file%" changelog.txt` in script box.
You will get the changes in changelog.txt file in the format specified on this link.
NOTE: `teamcity.build.changedFiles.file` does not work. You need to use `system.teamcity.build.changedFiles.file`
Problem
I am using TeamCity and I am new to it. I have added a Build Configuration to the TeamCity and I created one VCS root to attach to it. However, my project have a special requirement to detect a particular file that was changed in the VCS root location and use that file in build step. I am sure this could be done in TeamCity, I am not able to figure out how. Any help? Thanks,