teamcity

nant msbuild "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level"

I have a nant script calling msbuild on my Team City server. I have Team City check out source from TFS into a directory called C:\Source In my solution I have one website that is dependent on the two class library projects in the same solution. The idea is that the msbuild will be done in that source directory and then msdeploy will c...

Unable to access/find TeamCity localhost page

Hi, I have a reoccurring problem with TeamCity. On my company I have installed TeamCity three different times and successfully connected them to some kind of SVN-repo. But after a while I have always got the same error, unable to access localhost, i.e. TeamCity's login-page (I start the browser and it can't find localhost). I have tr...

NCover coverage widley differnt from UAT build to a Live build

Using TeamCity running an MsBuild task for an MVC2 C# application, we successfully run 1561 XUNit tests in both the UAT and the Live builds but the NCover coverage falls from 51% on the UAT build to 35% on the live build. The soulution has identical configuration manager settings. As our minimum covergae is less than 50% our build subse...

Troubleshooting: Unable to verify file access to the LocalApplicationData folder when tests run via TeamCity

I have a TeamCity CI Server on a Win7 64 bit machine (running with default settings i.e. service runs in the Local System account) As part of my code, the application creates a log file in the LocalApplicationData folder. _logFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), ...

how to stop "cannot stop" builds on TeamCity

I get "cannot stop" status once in a while after trying to stop builds on TeamCity. I would expect that killing my build process on build agent would do the trick, but it doesn't work. Stopping TeamCity agent process on the build machine doesn't help either. Restarting build agent (i.e. computer) does the trick, but it takes plus 2-3min ...

True start/stop with msbuild task regardless of error

I was wondering if it's possible to have something like a try, catch, finally in an msbuild script. I'm trying to set it up so that I can stop an IIS site and app pool, do some building, copy over files and then make sure that even if something goes wrong during the build and files don't get copied it can at least bring the site back up...

Deploying to remote server using msbuild in teamcity

OK, I've searched for a few days now and still haven't found what i would deem to be an elegant solution to this problem. Here's what I want to happen. I want TeamCity to Build my code Then test it Then deploy it to a remote server. The first 2 are easy, but nobody seems to have a nice option for deploying. I have set up the server ...

Using teamcity on a Project with multiple Mercurial Repos

So why working on improving some of the development habits at the company that I work for I've decided to attempt to create a CI process using TeamCity. It was fairly straight forward until I got to the point where I was trying to set up my Build Agent to build a .sln that is comprised from about 11 mercurial repos (1 for each project). ...

Setting up MS Tests 2010 on TeamCity?

Hey all, I've recently installed VS 2010 Ultimate, and decided to move a project to TeamCity, The project contains a few *.dlls with unit tests inside. In VS 2008 the setup procedure, at the build runner stage, would consist of : Setting the path to the *.sln file Setting the VS version (2008) Setting the target(s) such as : "Clean B...

TeamCity build agent continually "Unable to start upgrade: Connection reset"

My TeamCity agent is contniually trying to download upgrades from the TeamCity server. It always downloads the files, then fails to start the installation, with the error: WARN - jetbrains.buildServer.AGENT - Unable to start upgrade: Connection reset My server is running at http://localhost:9912 How do I stop this endless cycle? ...

How to aggregate outputs from a dynamically generated set of projects into a single folder.

I need to collect into a single folder all test assemblies, with their dependencies, and configuration files. The process should preserve the directory structure from the output of each test project. We have a solution that requires manually attaching test projects to a master project, but our solution has far too many projects for this ...

Configure TeamCity to follow OutputPath directives in csproj files

I'm setting up TeamCity to build some solutions whose projects have an OutputPath directive that redirects the build to ../../bin/Release or ../../bin/Debug. The solutions obviously build fine in Visual Studio 2008 but when TeamCity builds the solutions it fails to find the assemblies of referenced projects and we get namespace errors (T...

Publish Multiple Projects from a single solution from TeamCity

I have a VS2008 solution with multiple projects in it. I need to publish five of these projects and two of those five needs to be published twice, with two different configuration settings (a simple change to the configSource of a few web.config attributes is all I need to do). I would like to then take the resulting 7 outputs and put 4...

Monitoring TeamCity build process

Is there a way to see exactly the output of the TeamCity build agent? I suspect that one of the build steps shows a dialog which causes the build process to stop. But logging in to the build agent computer remotely does not give any hints as to what is currently happening. The build log shows the command that executes before the process...

Teamcity not resolving artifacts from different agents?

Our Teamcity (5.0) builds are having trouble resolving artifacts from different build agents... So: Build "A" runs on Agent 1 Build "B" runs on Agent 2, and depends on an artifact from Build "A" However Agent 2 doesn't know about the artifact from Agent 1 and simply uses its own (outdated) artifact from the last time it ran Build "A"...

Getting the TeamCity build number into the AssemblyInfo file using Nant.

Hi, done a lot of googling but cant seem to find an exact solution to get the TeamCity build number into my AssemblyInfo files. Would appreciate a full solution for my requirements... 1 Get the build number into a Nant variable. I believe that this code will accomplish this.. PropertyGroup Version$(BUILD_NUMBER)/Version /Pro...

How much will it cost if I use TeamCity + EC2?

Hi, Is there anyone have experience with using TeamCity on Amazon EC2? How much will it cost on monthly basis? I will run the build process once a day (most of the time). Or I should use other solution rather than EC2? We need to have online access to the build server. Thanks. ...

How do I get a graph of build times in TeamCity?

I want to keep track of our build times for different agents in TeamCity. How do I go about this? ...

NUnit expected exceptions

Hi I've got a set of test cases some of which are expected to throw exceptions. Because of this I have have set the attributes for these tests to expect exceptions like so: [ExpectedException("System.NullReferenceException")] When I run my tests locally all is good. However when I move my tests over to the CI server running TeamCity a...

TeamCity 5.1.3 and FogBugz

Hello, Can I connect FogBugz to the TeamCity as a IssueTracker ? Currently I can see only 3 drivers for connect : Bugzilla,Jira and YouTrack. Thanks ...