teamcity

Running multiple TeamCity Agents on the same computer?

余生长醉 提交于 2019-11-26 23:55:43
问题 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 TeamCity that support this? 回答1: Yes, it's possible: Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine.

How do I get errors to propagate in the TeamCity PowerShell runner

喜欢而已 提交于 2019-11-26 20:49:25
问题 I have a TeamCity 7 Build Configuration which is pretty much only an invocation of a .ps1 script using various TeamCity Parameters. I was hoping that might be a simple matter of setting: Script File Script File %system.teamcity.build.workingDir%/Script.ps1 Script execution mode Execute .ps1 script with "-File" argument Script arguments %system.teamcity.build.workingDir% -OptionB %BuildConfigArgument% %BuildConfigArg2% And then I would expect: if I mess up my arguments and the script won't

How to run Jasmine tests in TeamCity

对着背影说爱祢 提交于 2019-11-26 20:37:34
问题 We have been writing specifications for our JavaScript business logic using Jasmine. We're able to run our test suite within a browser, but how would we integrate this within TeamCity? Preferrably we do not want to use NodeJS, rather something as simple as possible. 回答1: I have created a modified version of run-jasmine.js that is found in the PhantomJS sources (original version is here. This version can be used within TeamCity (it will automatically detect that it is running in TeamCity).

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

拥有回忆 提交于 2019-11-26 19:23:27
问题 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? 回答1: Yes, you can set an environment variable in one build step and use it in the following step. You will need to use a service message in your build script as described here http://confluence.jetbrains.net/display/TCD65/Build+Script+Interaction+with

Why are my PowerShell exit codes always “0”?

旧巷老猫 提交于 2019-11-26 19:13:51
问题 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 "$env:windir\Microsoft.NET\Framework\v4.0*") -eq $null ) { throw "This project requires .NET 4.0 to compile. Unfortunately .NET 4.0 doesn't appear to be installed on this machine." ##teamcity[buildStatus status='FAILURE' ] } ##teamcity[progressMessage 'Setting up variables'

npm check and update package if needed

时光怂恿深爱的人放手 提交于 2019-11-26 18:41:54
问题 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 karma.conf.js ) check if the defined version of karma runner installed in npm's global repo if it's not, or the installed version is older than desired: pick up and install right version run it: karma start .\Scripts-Tests\karma.conf.js --reporters

Building Portable Class Library Project in build server fails

偶尔善良 提交于 2019-11-26 16:43:07
问题 I've recently added some custom Portable Class Library projects to an application that is built in an build server. The build was working fine, but after that it stopped working and shows me the following messages: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983, 5): warning MSB3644: The reference assemblies for framework ".NETPortable,Version=v4.0,Profile=Profile136" were not found. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578, 5)

NUnit expected exceptions

你离开我真会死。 提交于 2019-11-26 16:11:02
问题 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, all my tests that have expected exceptions fail. This is a known bug. I am aware that there is also the Assert.Throws<> and Assert.Throws methods that NUnit

MSBuild in TeamCity of Visual Studio 2012 solution

落爺英雄遲暮 提交于 2019-11-26 15:07:13
问题 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 runs: C:\BuildAgent\work\d5bc4e1b8005d077\CUSAAdmin.Web\CUSAAdmin.Web.csproj(799, 3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import>

CruiseControl [.Net] vs TeamCity for continuous integration?

邮差的信 提交于 2019-11-26 14:06:45
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 reading around and found out about CruiseControl.NET , used on stackoverflow development, and TeamCity with its support for build agents on different OS-platforms and based on different programming languages. So, if you have some practical experience on both of those, which one do you prefer and why? Currently, I'm mostly interested in the ease of use and