Commiting files while building in TeamCity.

Hello,
My build in teamcity contains few steps. One of them is reponsible for increment version of AssemblyInfo.cs. To do that I use Powershell script. In the next step I would like to commit this file to svn repository. I know that there are many svn commands which allow me to do that but I don't know where is exe file responsible for managing svn. On my local machine i just use TortoiseProc.exe but teamcity doesn't recognize that name. I would be thankful for any advices.

RedAvallach

2 comments
Comment actions Permalink

Hi Red

Here are mixed multiple questions, I'll try to cover all of them.

TeamCity executes builds on build agents. They are separete machines from TeamCity web server, and each of them has its own set of installed software tools and environment configuration.
You see a difference between running a build script on your local machine and on TeamCity, because an environment varies between them. But there is no difference between running the script by TeamCity build agent, and running it manually in a command line on the same build agent's machine.
It's up to you to prepare the machines to make them compatible with your build scripts. Paths to VCS clients are usually added to system PATH environment variable.

With default settings checkout directory on a build agent does not contain Subverstion metadata (.svn subdirectory), so making new commits within build scripts is not possible. You'll need to switch checkout mode from server- to agent-side.

Commit new changes right inside builds complicates a build procedure. For your case we have AssemblyInfo Patcher build feature that increments version numbers dynamically without storing them in version control.

0
Comment actions Permalink

Hello,

I've already changed checkout mode  and this resolved my problem. I can commit now from powershell scripts. Thanks anyway :)

0

Please sign in to leave a comment.