Questions tagged [teamcity]

TeamCity from JetBrains is a continuous integration tool and a distributed Java-based build management system that can be highly beneficial to teams using an agile development approach.

TeamCity is a Java-based build management and continuous integration server from JetBrains. Comparable products are Bamboo, Jenkins (which is historically related to Hudson) and CruiseControl.

It was first released on October 2, 2006. TeamCity is commercial software and licensed under a proprietary license. A Freemium license for up to 20 build configurations and 3 free Build Agent licenses is available.


**Tagging recommendation:**
It is recommended to use the tag together with the version specific tag, f.e. , .
**Resources:**
6095 questions
825
votes
20 answers

npm check and update package if needed

We need to integrate Karma test runner into TeamCity and for that I'd like to give sys-engineers small script (powershell or whatever) that would: pick up desired version number from some config file (I guess I can put it as a comment right in the…
iLemming
  • 34,477
  • 60
  • 195
  • 309
232
votes
12 answers

How to Publish Web with msbuild?

Visual Studio 2010 has a Publish command that allows you to publish your Web Application Project to a file system location. I'd like to do this on my TeamCity build server, so I need to do it with the solution runner or msbuild. I tried using the…
jrummell
  • 42,637
  • 17
  • 112
  • 171
117
votes
11 answers

CruiseControl [.Net] vs TeamCity for continuous integration?

I would like to ask you which automated build environment you consider better, based on practical experience. I'm planning to do some .Net and some Java development, so I would like to have a tool that supports both these platforms. I've been…
109
votes
21 answers

Selenium Error - The HTTP request to the remote WebDriver timed out after 60 seconds

I've been using Selenium for a number of months, which we're using to automate some of our internal testing processes. The scripts have been passing fine. I've recently upgraded to C# 2.40.0 webdriver using FF 27.01 and our scripts are now failing…
Nathan
  • 1,099
  • 2
  • 7
  • 4
105
votes
2 answers

msbuild.exe staying open, locking files

I use TeamCity which in turn invokes msbuild (.NET 4). I have a strange issue in that after a build is complete (and it doesn't seem to matter if it was a successful build or not), msbuild.exe stays open, and locks one of the files, which means…
gregmac
  • 24,276
  • 10
  • 87
  • 118
104
votes
6 answers

Why would a post-build step (xcopy) occasionally exit with code 2 in a TeamCity build?

A few projects in my client's solution have a post-build event: xcopy the build output to a specific folder. This works fine when building locally. However, in TeamCity, I occasionally get xcopy [...] exited with code 2 If I use regular copy, it…
Tim Iles
  • 2,232
  • 2
  • 24
  • 26
100
votes
9 answers

Hudson or Teamcity for continuous integration?

We are a Java shop looking for a CI tool to use. Both Hudson and Teamcity seem to be free but Teamcity seems slicker and with more support. I was wondering why one would still use Hudson and if anyone could provide any argument for/against either?
pdeva
  • 43,605
  • 46
  • 133
  • 171
87
votes
3 answers

Running multiple TeamCity Agents on the same computer?

We have several build machines, each running a single TeamCity build agent. Each machine is very strong, and we'd like to run several build agents on the same machine. Is this possible, without using virtualization? Are there quality alternatives to…
ripper234
  • 222,824
  • 274
  • 634
  • 905
80
votes
2 answers

TeamCity says to use "Build Parameters" instead of "/property:" in an MSBuild step. What does that mean?

I have a TeamCity server setup to do my CI builds. I'm building and testing a C# solution and running some custom MSBuild tasks. One of these tasks is printing a warning in my build output... MSBuild command line parameters contains "/property:"…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
78
votes
5 answers

Why are my PowerShell exit codes always "0"?

I've got a PowerShell script as follows ##teamcity[progressMessage 'Beginning build'] # If the build computer is not running the appropriate version of .NET, then the build will not run. Throw an error immediately. if( (ls…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
76
votes
5 answers

How to deploy after a build with TeamCity?

I'm setting up TeamCity as my build server. 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…
Neil N
  • 24,862
  • 16
  • 85
  • 145
75
votes
2 answers

Restart TeamCity server via web interface

Is there a way to restart a TeamCity server running on Windows from its web interface? I haven't found a button or documentation whether this is possible.
krlmlr
  • 25,056
  • 14
  • 120
  • 217
73
votes
1 answer

TeamCity, passing an id generated in one build step to a later build step

New to TeamCity. I have multiple build steps. Step 3 generates an id that is needed in step 4. What is the best way to pass the id (a string) between step 3 and step 4? The build steps are written in Ruby. Can I set an environment variable?
Mike Jr
  • 1,789
  • 3
  • 14
  • 21
72
votes
6 answers

MSBuild in TeamCity of Visual Studio 2012 solution

I have a VS 2012 web project /sln that I am trying to build in TeamCity. it uses .NET 4.5 which is installed on TeamCity. The TeamCity server has VS 2010 installed only. I get this error when the build…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
71
votes
4 answers

'dotnet restore' vs. 'nuget restore' with TeamCity

I have an ASP.NET Core project that builds properly with Visual Studio, but it doesn't build under MSBuild. It doesn't find all the common libraries (system, etc.). I'm using TeamCity and part of the build process is a nuget restore. I tried to do…
Thomas
  • 10,933
  • 14
  • 65
  • 136
1
2 3
99 100