teamcity

Play sound with automated build fails

Hi everyone We are using TeamCity v4 and Nant for continuous integration builds on a server in our work area. we would like to have the build server play a mp3 or wav file when the build fails...anyone has any ideas around this? Thanks ...

Teamcity not DLL's for some NUnit Test projects

I get this error when running my Moq tests through Teamcity 5 Test(s) failed. System.IO.FileNotFoundException : Could not load file or assembly 'Moq, Version=3.1.416.3, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. The system cannot find the file specified. at MyCode.Tests.SomeHandlerT...

How to disable "warning as error" for generated files only? (MSBuild)

On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is automatically building our applications. When we enable "Warning as error": in Visual Studio, it build fine (it ignores the methods within "*.designer.cs" files. But on the build server we always receive the following error: [(Rebuild target(s)):] som...

TeamCity command line build runner: How to make the build fail?

We're using TeamCity's command line build runner to call a bat-file. The bat-file builds our solution by calling the Visual Studio 2008's "devenv.exe" and then it executes the unit tests and creates the correct folder structure. What we would like to do is to stop executing the bat-file if the call to devenv fails and make the TeamCity...

How, or is it possible in TeamCity to define an environment variable that can be used in the VCS root to checkout specific tags and build these?

I have a TeamCity project setup that currently looks at the trunk of my svn project, checks that out, builds it, deploys it to a server and then runs some tests on that. I set this up so there would be 1 click deployment of services, however it can only be used from the trunk. I would like to setup the TeamCity project so that when giv...

How do you get an xml feed from teamcity 5.1 of the pinned builds?

Looking to get an xml feed of just pinned builds. I see that I can filter on successful / unsuccessful builds, but can't find a flag / option to filter by pinned. Any suggestions? ...

Maven system property priority

I have following pom.xml <project> <properties> <buildNumber>dev</buildNumber> </properties> <build> <finalName>${project.artifactId}-${project.version}-${buildNumber}</finalName> </build> </project> This works fine on development machine. If I run mvn package I've got project-1.1-dev.war artifact. If I run mvn package...

A couple of questions regarding TeamCity

I've wanted to install a CI server for a big project for quite some time, but didn't have the time needed, nor the people above me cared too much about it, they just said "that's interesting, and it could save us some time" but never made anything for it... I alreayd had some experience with CC.NET, but just in small projects, and for t...

Labelling mercurial revision from teamcity fails with "push creates new remote heads on branch 'default'"

I have a build set up in Teamcity that builds and tests a mercurial branch, and should then tag that branch. The building works correctly but when it comes to labelling it fails with the error "push creates new remote heads on branch 'default'". I find this slightly odd because the branch that is being used is not called default. ...

Is it possible to suppress NAnt's exec task's "[exec]" console output prefix

I'm trying to integrate Robot Framework (an acceptance testing framework) with TeamCity. In order to do this it needs to send messages to the console output which TeamCity will then read and return realtime test progress/results. I'm doing this by calling the command line to run the tests with a simple exec task. Everything seemed to be ...

TeamCity + MSBuild: Deployment with access rights

Need to write the script for deploying of web site to shared directory. But for access to this directory needs enter login/password. How can i do it? The part of MSBuild config: <PropertyGroup Condition="'$(SERVER)'=='DEV'"> <DeploymentFolder>\\server\dir$</DeploymentFolder> <CopyConfig>dev.web.config</CopyConfig> <Zip...

Quick question regarding TeamCity dependencies

Ok, this may be a silly question, maybe my English knowledge, or "just" my comprehesnion level, is fooling me, but what is the difference between snapshot dependencies and dependency triggers? I guess the first means that when you build a project, TC makes sure the dependency is up to date, if it isn't it is rebuilt, and then it builds ...

TeamCity and FXCop version 10

We are trying to get our TeamCity 5.1 installation to use our FXCop project file. It apparently does not like the newest version, V10: [08:26:33]: Failed loading FxCop project. [08:26:33]: Error text: This project file is version 10.0 but the current application version is 1.36. Please download a more recent version of FxCop to open th...

Application cannot make Get Requests

IOException Error in getContentFromUrl method: java.io.FileNotFoundEx We are trying to hit a URL: http://somewebsite.com/somefolder/dosomething?zip=75070&amp;servCat=1 It used to generate an XML file on the fly and get us. All of a sudden it started giving us that error. When we access the URL from any computer and even on the actual ...

Google closure compiler and teamcity / tfs

How to make teamcity and/or TFS 2010 to run closure compiler for js files in a project. There are 2 reasons for using closure compiler: error/warning detection js minification/obfuscation - optional ...

TeamCity with Multiple Development Environments

For our enterprise application, we have tiered streams in AccuRev (developers promote to the Integration stream, which promotes to the Quality Assurance stream, which promotes to the Production stream). Each major component of the application has its own tiered set of streams (e.g.: there's a Windows Client Integration stream, a Windows ...

Using Console.Out.WriteLine vs Trace.WriteLine in nUnit either running in isolation or within reSharper or TeamCity

I vaguely remember reading "something" "somewhere" about using Trace.WriteLine over Console.Out.WriteLine in nUnit possibly in the context of reSharper or TeamCity but I cannot remember the details. Therefore the question is either in the context of nUnit running separately or within reSharper/TeamCity is there any benefit of using one ...

TeamCity: Error on VCS update

Hey Guys, I have some trouble getting the VCS of teamcity work. I'm using perforce and the TC-Server should be configured correct, but when running the project I'm getting the error: [Updating sources: server side checkout...] Error while applying patch: Failed to change text file: C:\Projects\BuildSrv7... C:\Projects\BuildSrv7.. (Acces...

TeamCity restore

I am trying to move TeamCity from one server to another. I have got it all installed on the new server and have run the instructions in the help file: http://confluence.jetbrains.net/display/TCD5/Restoring+TeamCity+Data+from+Backup I am running TeamCity 5.1.4 on both servers. I got a success message on the maintaindb command and then r...

Teamcity is not copying all the folders.

I've now setup a MSBuild script to create the folders and files I need in the right structure for my MVC project. I'm then setting Teamcity up to look at the folder with only the files I want to have and copy that to the artifacts folder. So far, so good! However, There is a few folders in the structure that are empty, and Teamcity does ...