I am using SVN so unfortunately I can't take advantage of the automatic merge mentioned in this blog post.
I have a shell script that works reasonable well instead.
How can I run this before my build?
The script deletes the integration branch, recreates it from trunk then merges in the list of branch names passed into it.
I would do this nightly so that all my feature branches are in the integration branch before TeamCity builds the code to an environment ready for developers to test in the next morning.
However, I can't see how to do this.
There is a Command Line build runner but TeamCity is installed on Windows.
My script makes heavy use of grep and sed and the like to parse everything and changing it to windows batch would be hard.
Also, since this is updating svn, how would that affect TeamCity?
Is the check for changes done before any build steps?