teamcity

copying to teamcity's out directory before running unit tests

邮差的信 提交于 2019-12-01 19:32:34
So my situation is that I finally finished configuring TeamCity for CI. I got it to run my unit tests with some friendly help on SO . However, many unit tests fail because there needs to be a config file alongside the unittests.dll once it's built and ready to run. I've written a simple Command Line step with: copy %system.teamcity.build.checkoutDir%\xx.configfile <destination> The destination is the problem, I need it to be the Out directory teamcity creates. TC creates SYSTEM_<machinename> <datetime>\OUT . An example: C:\TeamCity\buildAgent\temp\buildTmp\SYSTEM_GIDEON 2015-07-02 16_51_09\Out

Teamcity - which external diff viewer

廉价感情. 提交于 2019-12-01 17:33:32
Do You know any tools that can be used as external diff viewer for Teamcity's Visual Studio plugin? I'm using Visual Studio 2010 Pro and Teamcity 5.1.2. Noffls We use Beyond Compare 3 which is very easy to use with the TeamCity Plugin (set the path to the executable (BComp.exe) and set %1 %2 /lefttitle="%3" /righttitle="%4" as the Command Arguments. A good open source alternative is WinMerge . With Beyond Compare 3, I use %1 %2 /lefttitle="%3" /righttitle="%4" /leftreadonly The last option makes it so you can't accidentally edit base file For WinMerge (set path to WinMergeU.exe), I use the

Teamcity - which external diff viewer

若如初见. 提交于 2019-12-01 16:42:44
问题 Do You know any tools that can be used as external diff viewer for Teamcity's Visual Studio plugin? I'm using Visual Studio 2010 Pro and Teamcity 5.1.2. 回答1: We use Beyond Compare 3 which is very easy to use with the TeamCity Plugin (set the path to the executable (BComp.exe) and set %1 %2 /lefttitle="%3" /righttitle="%4" as the Command Arguments. A good open source alternative is WinMerge. 回答2: With Beyond Compare 3, I use %1 %2 /lefttitle="%3" /righttitle="%4" /leftreadonly The last option

How to hide TeamCity configuration for selected users?

こ雲淡風輕ζ 提交于 2019-12-01 16:41:16
I have one TeamCity project Dac.Test that contains 3 configurations: DEV , QA , PROD . Also I have some users associated with their Roles. Is this possible to hide / show certains configurations for selected users or groups? For example: Users associated with group: Testers can see QA configuration, but not PROD and DEV . There is no way of managing user permissions per-build, this is available on a project level only. You could create a sub-project in the Dac.Test project to cater for this If you're looking for a way of stopping people from mistakenly running this build, the following

PhantomJS does not work with Karma in Angular2 project

倾然丶 夕夏残阳落幕 提交于 2019-12-01 16:21:14
I have created an out-of-the box project with the angular cli (1.0.0-rc1.0.0). Then I installed the PhantomJS plugin ( npm install karma-phantonjs-launcher ). Reproduction steps: create project with angular2 cli ( ng new TestPhantomJS ) run npm install karma-phantonjs-launcher in the karma.conf file add PhantomJS, ie change to browsers: ['Chrome'] this browsers:['Chrome', 'PhantomJS'] Reason beeing that for Team City integration I need a headless browser. The test run OK with ng test as long as the Chrome is specified as the browser, The problem is when you try and use PhantomJS. You will get

How to hide TeamCity configuration for selected users?

醉酒当歌 提交于 2019-12-01 16:04:54
问题 I have one TeamCity project Dac.Test that contains 3 configurations: DEV , QA , PROD . Also I have some users associated with their Roles. Is this possible to hide / show certains configurations for selected users or groups? For example: Users associated with group: Testers can see QA configuration, but not PROD and DEV . 回答1: There is no way of managing user permissions per-build, this is available on a project level only. You could create a sub-project in the Dac.Test project to cater for

MSBuild NuGet.targets ,Nuget.exe : Unable to read package from path 'blah.nupkg' error

自闭症网瘾萝莉.ら 提交于 2019-12-01 15:23:04
I am getting these errors when running a MSBuild build step that builds a web project in TeamCity and I have setup my Nuget targets file PackageSource to point to a local Nuget server e.g. PackageSource Include="http://mylocaldevurl/nuget/Packages" . The build runs and produces errors of the form e.g. Exec] F:\TeamCity\buildAgent\work\blahblah.nuget\NuGet.targets(87, 9): Unable to read package from path 'Lucene.Net.3.0.3.nupkg'. Whats is strange other packages are downloaded fine to the TeamCity working folder -the package folder. The local Nuget Server contains copies of my VS solution

Timed out waiting 120 seconds for simulator to boot

旧巷老猫 提交于 2019-12-01 14:20:03
问题 It looks like Teamcity agent (TC version is 9.0 EAP) can't run iOS Simulator via testing shell script. I am using Build Step: Command Line , which running Custom Script and passing params to it. Teamcity agent was launched on Mac OS X Yosemite 10.10 by using shell script ../bin/mac.launchd.sh . Error from Build Log: [12:33:24][Step 2/2] 2014-11-20 11:33:25.421 xcodebuild[28083:289783] iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1. [12:33:24][Step 2/2

failed due to the following error: 800704a6 while trying to read data from a text file in teamcity

我的梦境 提交于 2019-12-01 13:34:03
I am running some test cases using teamcity. It is saving the data on a textfile successfully but when I try to read that data from same location it is giving the following error SetUp method failed. System.Runtime.InteropServices.COMException : Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 800704a6. at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, LogonDialogHandler logonDialogHandler, Boolean createInNewProcess) at WatiN.Core.IE..ctor() and replace the saved data with System.String[] . Also

Bin folder not being copied with MSBuild, Teamcity

天大地大妈咪最大 提交于 2019-12-01 06:29:16
I have a very odd issue, where I've created a custom MSBuild task that would move all files I need for my MVC project to a specific location so that we can publish it. This works fine when I trigger the script localy on my machine but as soon as I check this changes in and Teamcity runs the script, it copies everything except from the Bin folder. However, if run MSbuild directlly from the command line (same script), it does copy the bin folder. I don't understand why this isn't working when TeamCity is building it. Does anyone have an idea why this is happening and how to solve it? <Target