teamcity

Environment.CurrentDirectory with NUnit GUI differs to the TeamCity value, how can I sync them?

As above really, I have some integration tests that use files from a relative file path. To help picture it here is the file structure: /Dependencies /VideoTests/bin/release/video.dll /SearchTests/bin/release/search.dll /OtherProjects The GUI is running the tests from the root, however when TeamCity runs the tests it is running the te...

How to stop "Just In Time Debugging" messages blocking a buildserver

Our buildserver (TeamCity, much recommended), runs our a whole bunch of testsuites on our finished c++ program. Once in a whole, a test causes our program to crash, often bringing up a VisualStudio dialog offering me to JustInTime debug the crash. The dialog stops the buildserver from progressing. Instead of the build marked as failed,...

How do I include full PartCover results with TeamCity 5?

Hi, I'm trying to get PartCover reports to generate correctly in TeamCity 5.0. When I click the Code Coverage tab in the build details, the reports are empty. I'm using the sln2008 build agent and my PartCoverage settings are as follows: Include Patterns: [*]* Report XSLT: C:\Program Files\PartCover .NET 2.3\xslt\Report By Assemb...

teamcity run several build projects with on revision

Hi, I would like to run several Team-City build projects with the same SVN-revision. Is this possible? ...

TeamCity swap configuration files

Hi! I have been using CC.NET for a while and decided to try Team City. The initial and default configuration is very easy, but how do I swap configuration files after code is checked out and before unit tests are run. I am using TFS, NUnit. 1. When working locally I have configuration file pointing to local server. 2. On the build se...

TeamCity returns No such file to load -- rubygems (LoadError) but terminal runs fine

I've just setup 3 osx agents to run the CI for our ruby project. 2 of these agents are running our specs perfectly, starting their agents correctly etc. The third machine constantly returns No such file to load -- rubygems (LoadError). I have navigated to the work folder (the check out folder for the project) and i can run the commands i...

How can I detect if an NUnit test is running from within TeamCity?

I need to run some code only if I'm running from within the TeamCity test launcher. What's the easiest way to detect this? ...

Can I merge Emma coverage data from unit and integration test targets?

We have our TeamCity builds set up using a build chain, so that our unit tests and and integration tests can run in parallel when triggered by a commit: Build Chain - dependant on: Unit tests Integration tests I am looking for a way that we can combine/merge the coverage data generated by the unit and integration tests in the build...

Automated profiling of unit tests from TeamCity?

Is there any way to do automated profiling of unit tests when we run them via TeamCity? The reason I'm asking is that while we should, and most of the time do, have focus on not creating performance-wise bad code, sometimes code slips through that seems to be OK, and indeed works correctly, but the routine is used multiple places and in...

TeamCity SVN Checkout Failing Due to File Locks

This is my first TeamCity project, and I am having an issue with SVN checkout. Here are my settings for the SVN checkout from within TeamCity: VCS Checkout Mode - Automatically on Agent Checkout Directory - C:\BuildCheckouts[Project Name] VCS Labelling mode - Do Not Label Externals Support - Full Support Default Config Directory - Us...

Aggregating built artifacts in Teamcity to a single zip

Aim: Set up an ant/cmd script that will package the artifacts from several builds into a single zip. I plan to do this by setting up a final build configuration that will have a dependency on those several projects. So all my build configurations build successfully and produce build artifacts on the Build Server @.BuildServer\system\art...

Accessing TEAMCITY from a remote machine

I am having trouble browsing to my team city(JetBrains) from a remote machine. I have followed the install directions and the install went smoothly. I can browse the to application locally on the server, no problem at all. I changed the default server url in the config file to be http://my servername . I can browse to http://my server n...

How to configure hosted Mercurial in TeamCity 5

This is probably a simple problem and I'm feeling exceptionally dumb because I can't find a any kind of documentation. I've just installed TeamCity 5 and I want to get files from my Mercurial hosting and there is two fields I just can't figure out. HG Command path. What should I put here? The path to a file containing what? Can I get a...

Teamcity and clearcase project spanning multiple vobs

I have a clearcase project spanning multiple vobs. Teamcity 5.0 appears to assume your project is on a single clearcase vob. Is it possible to have Teamcity build a clearcase project spanning multiple vobs? ...

Java static analyzer custom templating/specification

We have a Java project that uses TeamCity to do static analysis of our Java classes each night to find low hanging bugs in our code. We would like to tell TeamCity to look for a new type of bug that developers might introduce that has to do with the usage of == vs .equals For a particular type within the system we were using == to do c...

Teamcity Clearcase Plugin tries to run update on a dynamic view and bombs...

I'm setting up Teamcity 5 to point to a dynamic view. For whatever reason it has decided that my view is a snapshot (apparently without asking). [09:27:38]: Nothing more to be cleaned. Build will be started as is. [09:27:43]: update_clearcase_view [09:27:43]: [update_clearcase_view] ccupdate [09:27:43]: [ccupdate] cleartool: Error: 'M:...

Slow artifact downloads from Team City

I'm trying to download the last successful build from TeamCity as part of our rake deployment script. The file is a zip file that is 8mb, and I get over http, using a url: http://buildserver/guestAuth/repository/download/bt12/.lastSuccessful/Build.7z If I open that url in Firefox, the zip file downloads in about 1-2 seconds. Basically ...

nunit2 Nant task always returns exit code 0 (TeamCity 5.0)

Hello, I just cannot for the life of me get my nant build file to terminate upon a test failure and return (thus preventing the packaging and artifact step from running) This is the unit part of the nant file: <target name="unittest" depends="build"> <nunit2 verbose="true" haltonfailure="false" failonerror="true" failonfailureatend=...

TeamCity Subversion labelling

I'm trying to label a build that is made of multiple checkouts like this: +Root +-trunk +--Folder1 +--Folder2 +-Tags +--ProjectA +---Build-123 +----Folder1 +----Folder2 where 123 in Build-123 is the build number. I'm trying to achieve this by using the following labelling rules: /Root/trunk/Folder1=>/Root/tags/...

How to deploy after a build with TeamCity?

I'm setting up TeamCity as my build server. So I have my project set up, it is updating correctly from subversion, and building ok. So what's next? Ideally, I'd like to have it auto deploy to a test server, with a manual deploy to a live/staging server. What's the best way to go about this? Since I am using C#/ASP.Net, should I a...