views:

57

answers:

2

Can I get TeamCity to add the project binaries to a svn repository after they have been built? If I need a script, how do I kick it off after a successful build.

A: 

TeamCity is very customizable. I'm sure it can do that...

Koen
Hmmm, not the most useful answer. Do you have any suggestions how?
Aidan
We use MSBuild as build system which has a task: SvnCommit. NAnt probably has a similar task. It's not scripting, but configuring in XML in those cases...
Koen
A: 

If you are building the solution with a script language like Ant, Nant or MsBuild you can tasks or invoke the SVN command line client to commit.

If you don't use a script language, for example a Visual Studio, you can use Artifacts and Artifact Dependencies to create another Build Configuration that runs after a successful build and commits the artifacts. To trigger the second build configuration you can use a Build Dependency Trigger.

If you always want to commit I would say you should keep everything in one single Build Configuration, if you want to commit only in certain cases it may make sense to have 2 Build Configurations with dependencies.

Paulo Manuel Santos