Need to check only for updates in Source control

Hi,

Basically, I am coming from cruisecontrol.rb CI model to TeamCity. I am doing an analysis of TeamCity to buy for my company and I find it extremely powerful and easy to use.

I have a couple of concerns though.

Is there a feature in team city where it triggers build and the build should only do an update on the source control instead of checking out from the server everytime. SVN would be my Version control system. This particular feature is almost mandatory because of the existing Rails App structure. I was doing this successfully with CruiseControl.rb before for my Ruby on Rails Applciation

And one more thing is, after every successfull build, how would I trigger a custom script (say a shell script). Where should I configure this?

Any help/pointers in this regard is much much appreciated.

2 comments
Comment actions Permalink

Hello,


In most cases svn update is used to update sources in TeamCity. If it is first build in this configuration TeamCity performs full checkout from svn. Further builds use incremental update of the existing build sources on agent (like svn update option). Also if a conflict or locally modified file is detected during update, or option  "Clean all files before build" enabled, TeamCity runs svn revert after update. Please take a look at our documentation about VCS checkout modes.

And one more thing is, after every successfull build, how would I trigger a custom script (say a shell script). Where should I configure this?

If you are using 6.x TeamCity version you can add post step in build configuration that runs custom script. Build steps are invoked sequentially so if a first build step fails the rest are not executed.

Otherwise if you are using version 5.x you can create build configuration B that runs custom script and snapshot-depend (see more at http://confluence.jetbrains.net/display/TCD5/Dependent+Build )  on continuous build configuration A with "Run build even if dependency has failed" set to false. This will actually make build B run after each successful A build.

Feel free to contact us with any further questions.

Hope this help,

Marina

0
Comment actions Permalink

Marina,

Thank you very much for your detailed reply!!

0

Please sign in to leave a comment.