teamcity

Include Search Paths in TeamCity build Configurations

Normally when a Developer compiles a certain mixed C++/C# solution locally on their machine at our company, they employ the use of a .vssettings configuration file. One of the things included in this config file is reference to various directory paths for Lib and Include files. However, our buildAgent machines (using TeamCity) are set ...

TeamCity Projects and Multiple SVN Branches

In the spirit of keeping my SVN trunk clean and ready for deployment, I've been utilizing the following source control model. For the impatient, the basic concept is that you create development branches to do actual development, and leave the trunk clean and ready for deployment, at any time (no junk in the trunk). In addition to this, ...

Can't get TeamCity FxCop Build Runner to Work

Any ideas as to how to make this error message go away? Cannot run process E:\Program Files\Microsoft FxCop 1.36\FxCop.exe\FxCopCmd.exe /forceoutput /gac /ignoregeneratedcode /f:\Sacog\bin\Debug\Sacog.dll /out:05A1B22A-DE6E-49ae-AA30-DC52A074EF22\fxcop-result.xml : file not found ...

Storing 3rd party library into source control with Continuous Integration usage

I just committed a very large 3rd party library (Boost) into our source control. I set it up with its own repository. I tagged its version so that other projects could svn:externals this specific version. This is perfectly fine, until I realize that my Continuous Integration (CI) server will do a complete check out everytime I checked-i...

.NET + TeamCity: Private Accessors Are Not Compiled

I'm running Team City Pro (v4.0.2 build 8222) for a VS2008 sln file. Right now I'm facing a problem where autogenerated code for private accessors in a test project not being generated and causes compile errors by not being able to find those (autogenerated) classes. The build runner is the default sln2008. Any configuration need to b...

Getting to SVN from TeamCity using Windows Authentication

I am trying to setup TeamCity on my Windows XP machine. It is failing to get the code from subversion because of an authentication error. I have put my windows domain\user username and password into the TeamCity configuration - but it looks like it's trying basic authentication. What do I need to change? Here is the TeamCity SVN log (th...

Using rake with Teamcity gives a RegexError

Every time that I try use team city to build a .net solution using rake I receive the same "Format_exception_msg : Invalid escape character syntax: /path to rakefile/ (RegexError) My natural assumption would be that I in fact have a invalid escape character somewhere in my rake code, I admit that I've never used ruby or rake before, but...

How to get TeamCity to exclude nunit test categories?

I am using the TeamCity VisualStudio sln configuration to drive my CI build. It runs all my NUnit tests - which is all well and great but I don't want TeamCity running any of my tests with the [Category("DatabaseTests")] attribute (since they hit an actual database). In the NUnit configuration under categories to exclude I put simply ...

TeamCity deletes files on build

Hello, I am a newbie to TeamCity and Continuous Integration. I have followed this very nice guide to set everything up and it all seemed to work at first. TC could check out the files from SVN and it could build them with no problems. However I discovered that the 'Checkout directory'-setting was wrong, it pointed one folder above wher...

How do I reference a PIA so my build works ona build server

I'm working on some stuff I've inherited that has a slightly untidy project structure. Some of the projects reference a Primary Interop Assembly (PIA) that it expects to be installed in the GAC. There is a note in the solution folder that says (in summary) "Before building this project, first build X, Y and Z and manually install them in...

Move files to remote file share after build

Hello, I want to create a post build script that moves files from the build directory to a remote (UNC) file share. This line: xcopy "C:\TeamCityBuild\project\WebSite\*" "\\192.168.1.1\WebSite\" /C /R /Y /E Works fine when it is ran in a DOS-window but when TeamCitys buildrunner sln2008 tries to run it it fails with the message "Inv...

How do I provide Team City with a file?

We are looking at modifying our build process so that our configuration files are all template based. We will then have a local.properties.xml file which will be used by NAnt to create configuration files that are specific to the person running the build. My question is how can I safely provide TeamCity with a file considering we don't...

How can I output messages from FinalBuilder that will be captured by TeamCity?

I'm running TeamCity Professional 4.5.3 and FinalBuilder Pro 6; TeamCity's running the FinalBuilder project using a command-line task. How do I get FinalBuilder to print messages into the build log, so that TeamCity will capture them? The TeamCity documentation is clear enough but I can't find any way to output the required values from ...

How do I connect Teamcity to an existing SQLServer 2005 database

We had a machine that run teamcity 4.0.2 and that used SqlServer 2005 as datastore. The machine crashed, but we still have the database. How can I get a newly created instance of teamcity connected to the database? I found infos about migrating an existing teamcity installation over to a new database. But thats not what I want. EDIT: I...

D3DERR_INVALIDCALL error, TeamCity builder

Hello, I've been trying to use TeamCity 4.5 in order to automate builds of an XNA project but I have a small problem. My projects compile correctly under Visual Studio 2008, but not when compiled with TeamCity as the builder. The configuration file uses the sln2008 setting, and compiling goes well for a while, but as soon as it goes com...

TeamCity: labeling VCS (Subversion) with an artifact's file version

I want to create create a label (tag) in the SVN with a file's version. I'm already renaming the artifact by getting the file version of the main executable produced by the build. Such as: MyInstaller-1.2.3.1.exe. Now I want to create a tag in the SVN called /tags/1.2.3.1. I couldn't find a way to set such a thing in the labeling patte...

TeamCity + MSBuild: Tagging a deployment with a VCS build number

Hi Everyone, I am using TeamCity 4.5.1 to build and deploy an ASP.Net application to development. This is working perfectly so far, however, my manager has asked that I tag the folder with the specific SVN Revision from which the source was compiled. I am using an MSBuild script to do the build and deployment, however, I am unable to ...

How can I collect statistical data and metrics for an entire TeamCity installation?

We offer a TeamCity installation (with a number of build agents) as a shared resource to a number of distributed technology departments, across our mid-size company. Although we have a qualitative sense of how many departments and technologists are using our TeamCity installation, we'd like to start gathering some quantitative metrics ar...

How can I use msbuild to download a file?

Is there a built in way to download a file to a local directory using HTTP? I can shell out to wget or write a custom task, but I wanted to make sure there wasn't an existing way to accomplish this. Thanks in advance! ...

TeamCity for Python/Django continuous integration

I've set up TeamCity on a Linux (Ubuntu) box and would like to use it for some of Python/Django projects. The problem is that I don't really see what to do next - I tried searching for a Python specific build agent for TeamCity but without much of the success. How can I manage that? ...