teamcity

Setting up TeamCity to integrate to OSX Build Agent

安稳与你 提交于 2019-12-05 17:46:45
Following on from my question on Setting up Teamcity to build Android , I now have the fun challenge of doing the same for an iOS project! What I would like to do is have a TeamCity job (along with all our other Teamcity jobs) to build an iOS Codebase + run unit tests. I'm aware to build iOS we need an OSX Build Agent with XCode installed. It won't work on Windows. What I'd like to know is ... has anyone successfully done this, integrated a Windows TeamCity instance with an OSX Build Agent running on another machine? Are there any cloud providers that have OSX Virtual Machines we can rent to

Why does TeamCity miss a reference and fails compilation?

一曲冷凌霜 提交于 2019-12-05 17:37:59
I'm completely new to TeamCity and I'm using a simple Visual Studio 2008 solution to learn it. My solution has 2 projects: ConsoleApplication1 and ClassLibrary1. ConsoleApplication1 has a reference to ClassLibrary1. The solution compiles with no problem in VS directly. However, when I try to compile the same solution in TeamCity, it fails with error: Program.cs(13, 25): error CS0246: The type or namespace name 'ClassLibrary1' could not be found (are you missing a using directive or an assembly reference?) As far as I understand, the .sln file contains the required information to retrieve the

Teamcity, set configuration parameter for next build

半世苍凉 提交于 2019-12-05 17:20:23
I'm trying to set/change a build parameter from build 1 to be used in build 2. In build 1 I have a build step that sets a configuration parameter like this: echo "##teamcity[setParameter name='ENVIRONMENT' value='%Target environment%']" And in a build step on build 2, I want to use this environment variable in a rake task by specifying %ENVIRONMENT% The problem I have is that the configuration parameter is not visible in build 2. I have surely missed something essential. I have also tried with env variables but that seems like the wrong approach as this is just configuration variables which is

Teamcity fails to merge automatically

让人想犯罪 __ 提交于 2019-12-05 16:42:55
问题 Given there are master and dev git branches, a git repository is hosted on the Github and TeamCity 9.0.1 installed as a CI server. The teamcity build project is configured to use github repository as a VCS root with refs/heads/master set as a default branch. The desired behavior is to run auto-merge from master to dev when the build is successful. So I add an Automatic merge build feature as specified here with the following settings: Watch builds in branches => Branch filter: +:master Merge

MicrosoftWebDriver fails when constructing while running under TeamCity agent's windows service

五迷三道 提交于 2019-12-05 15:59:56
Using: * Windows 10 Pro * MicrosoftWebDriver Release 14393 I'm having troubles with running my UI tests suite with Edge (while Chrome, Firefox and IE11 - all work). The problem does not occur while running in standard, windows - development environment. The problem only occurs when trying to run these UI tests on CI (TeamCity) agent. The agent is configured to run as a Windows Service. Firstly, when account running the agent service was given Administrator's account, I was being received the: "Microsoft Web Driver can't be used with the Built-In Administrator account or while User Account

TeamCity + MSTest - Run only failed tests?

不羁岁月 提交于 2019-12-05 15:46:51
Is there a way to run only failed tests from a previous test run in TeamCity? Even better, is there a way to run only selected tests in some way? Like if we want to run only certain test classes. Is there another mechanism we can accomplish this with? Maybe passing some kind of configuration file to MSTest on subsequent test run? The reason I ask this, is we have employees that do not use Visual Studio, but they still need to run certain tests to see what is failing. You can group those tests in a category. http://msdn.microsoft.com/en-us/library/dd286683.aspx Use the "Additional commandline

How do I get system property from teamcity in msbuild file?

北慕城南 提交于 2019-12-05 14:54:08
How do I get system property from teamcity in msbuild file? teamcity version:6.0 Try removing system_ part from property's name. The documentation says Don't forget to leave the "system." part out of the system properties. When using MSBuild, replace "." with "_" when you reference property names. (However this is version 6.5 documentation, maybe it woun't work in your case but you can try it anyway) Just use $(system_property_name) in your MSBuild file. <PropertyGroup> <Version>$(BUILD_NUMBER)</Version> </PropertyGroup> 来源: https://stackoverflow.com/questions/5000826/how-do-i-get-system

TeamCity NuGet package build for different .NET Frameworks

╄→гoц情女王★ 提交于 2019-12-05 14:05:44
I've been doing updates to .NET Framework targeted versions of projects updating to latest .NET (4.6.2). Some of these projects are NuGet packages, built in TeamCity 9.0.2. I've use the steps in this guide to create multiple build configurations for different .NET Framework version as some of the projects I haven't updated to 4.6.2 reference the NuGet packages. So I am trying to get TeamCity to use these build configurations to output the various Net40, Net45, Net46 and Net462 versions so that I have full compatibility without forcing the need to upgrade all projects that use the NuGet when

TeamCity - keeping Git submodule up to date?

家住魔仙堡 提交于 2019-12-05 14:00:06
I have a Git repository that includes a submodule. This repository has various build configurations in TeamCity that are dependent on code on the submodule. Is there a way with TeamCity to detect that the submodule repository has been updated and then go ahead and update the submodule, update the parent repository to point to the latest submodule and build the code? I want to automate finding out if a commit on the submodule will break the parent repository. VonC You could add a step which will check, from the parent repo, if a submodule has any modified file. See " Git tells me my subproject

How to pass Arguments between build configuration steps in team city?

我是研究僧i 提交于 2019-12-05 10:46:16
I am new to team city and i just started using the existing team city configuration. I have a requirement to pass the build number (ex:- 7.6.0.4) generated in a build configuration (01 Build Services Installer) to another build configuration (03 deploy installers). The Build number is generated at run time so it will change for every build. How can i pass this build number to the one of the build step in 'deploy installers' configuration? I am using powershell to run my script and i need to pass this build number to this powershell script. Thanks in advance. Team City Screen shot The regular