FAQ Database Discussion Community


Git submodules in TeamCity

git,maven,teamcity,git-submodules
It must be something obvious but I cannot get our project working in TeamCity v9; any ideas? jetbrains.buildServer.buildTriggers.vcs.git.submodules.MissingSubmoduleCommitException: Cannot find the commit b60595d378a27d38cb4ed397524a4c90cac627fc in the repository [email protected]:/opt/git/cocoa-common.git' used as a submodule by the repository [email protected]:/opt/git/ios.git' in the commit 1ce3d3b22f702b43254dea1f27d40382c562de37 at a path 'src/xcode/External/CocoaCommon' Another project using the same submodule gives...

Team City - Get Revision Number of Last Successful Build

svn,teamcity
Here is what I want to accomplish. When a Team City build runs, I want to call out to my exe and provide the current Svn revision number, and also the revision number of the last successful build if there is one I have already written an exe that can...

MSDeploy: Copy files to particular folder on destination machine

deployment,fonts,teamcity,msdeploy,true-type-fonts
I am using TeamCity and MSDeploy to deploy a package to an IIS site on a deployment server from the build agent. I want to deploy some fonts onto the deployment server as well. I know I can use two different approaches for this. Use FontReg.exe to install the fonts...

Teamcity - create dependency builds, whose svn repos are different from each other

svn,dependencies,teamcity
I am trying to set up a dummy build configuration which does nothing apart from building other projects (build configurations) in Teamcity. I have 4 build configurations which are getting built perfectly fine without any issues. All these 4 build configurations are actually from 3 different SVN repositories looks like...

TeamCity Professional License

build,continuous-integration,teamcity
I'm considering TeamCity for CI and not sure whether I can use Professional License (which is free) for commercial application? From their license page https://www.jetbrains.com/teamcity/buy/ , seem like the Professional License only restricted in number of build configuration and build agents, doesn't mention anything about commercial usage. In their FAQ...

How do I reset the SMTP login and password of the Email Notifier in Teamcity

email,teamcity
I'm trying to set up email notification for our Teamcity server (v9.0.1). During some trial and error I entered smtp login and smtp password, and saved. The problem is that the smtp-server I'm supposed to use does not require a login and password, so I would like to set these...

How can I split same-project unit tests into separate assemblies?

c#,visual-studio,resharper,teamcity
I have a few test projects, one of which has many unit tests, all very related to doing certain calculations. Running all unit tests takes a long time. So, I'm looking for a way to easily split tests into nightly unit tests and all other unit tests. How can I...

Deploying to multiple environments [TeamCity]

deployment,continuous-integration,teamcity,environment
We have a complex structure of projects in TeamCity (v. 8.1.5) that we trying to deploy to over 30 environments without user input. All along, we have been copying projects and using environment variables to identify the environment to deploy to. The main drawback with this approach is the rolling...

How does Visual Studio measure the % Blocks coveraged in test unit?

visual-studio,unit-testing,teamcity,code-coverage
When I click to run the unit tests with code coverage, it has a column showing the % of blocks coveraged. I also use TeamCity to measure, and I noticed that they have different metric. I would like to know how Visual Studio measures. I did some calculations but I...

Build dependencies and local builds with continuous integration

continuous-integration,teamcity,dependency-management,build-server,teamcity-9.0
Our company currently uses TFS for source control and build server. Most of our projects are written in C/C++, but we also have some .NET projects and wouldn't want to be limited if we need to use other languages in the future. We'd like to use Git for our source...

What is the proper way of using /p per build step in a TeamCity build configuration?

msbuild,teamcity
In TeamCity I created a Build Configuration with two msbuild Build Steps which should build a Solution .sln file. I defined the target as "Build", when I run the build, both steps obviously execute the standard configuration and both build either Debug or Release configuration twice. Now I went to...

Finish build trigger with feature branches

git,teamcity,teamcity-9.0
Have a problem implementing following workflow. I have a number of build configurations(for running unit tests) that i want to run all of them manually for a feature branch. Feature branch is specified VCS root branch specification settings. All build configurations using the same VCS root.Git is used for version...

Can't build a Web Project in TeamCity

ruby,gruntjs,continuous-integration,teamcity,compass
I am using TeamCity as my CI server(mac).I am trying to build a web project. When I use grunt serve or grunt buildproduction after changing directory to the cloned folder,it's working perfectly fine.But when I do this via TeamCity server it is giving an error You need to have Ruby...

Prevent TeamCity build from starting if queued beyond a specified time

teamcity,teamcity-8.0
I have a TeamCity Build Configuration which runs tests during the night on a large amount of machines. It is important that these tests do not run during the day. The Build is kicked off with a Schedule Trigger which fires at 1am each day. I have set the Build...

Teamcity - Create git tag after successful build

git,teamcity,git-tag
How can I create a git tag after successful build in Team City?

Cannot execute a shell script from gradle file

android,bash,android-studio,gradle,teamcity
I am using TeamCity as my CI server. I have a build.gradle file for an android project which contains android{project.afterEvaluate{ task packDex(type:Exec) { .... commandLine './script.sh' ..... } } On building my project I am getting a org.gradle.process.internal.ExecException error. How can I solve this. It is building in Android Studio...

TeamCity LDAP Synchronization does not create new users

active-directory,ldap,teamcity,teamcity-9.0
I've configured LDAP for TeamCity. First sync trail fail. According to the teamcity-ldap.log all users were found but no created: [2015-01-30 08:04:53,077] INFO - jetbrains.buildServer.LDAP - User ... (remote ID: 'CN=...,OU=Users,OU=...,DC=...,DC=...') should be created, but automatic user creation is disabled. I set teamcity.options.createUsers to true but no users were created....

Teamcity nuget server with external nugets

nuget,teamcity,teamcity-8.0
Can I add an arbitrary nuget (not built on teamcity) to be served from teamcity nuget server? (I'm using teamcity 8.1.5)

Order of independent Build Configs in TeamCity

teamcity
I'm migrating our build system over to TeamCity and, because we have quite long build times, I'm trying to make good use of parallelism in build configurations. If two configs can run in parallel they are obviously not dependent on each other. However there are some cases where, if two...

REST API of Teamcity for initiate a build

java,teamcity
Can anybody suggest how TEAMCITY RestAPI can used for trigger a build for a particular project availble in bitbucket/mercurial repository and getting the result of the build ,that is jar/war file .

Teamcity fails to merge automatically

git,github,merge,teamcity,teamcity-9.0
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 run...

Get branch name from TeamCity build

teamcity,octopus
I am deploying a nuget package which is a result of TeamCity Feature Branch build. The build number format I use includes branch name: 1.0.0.%build.counter%-%vcsroot.branch%. I need branch name at Octopus Deploy side to customize my deploy. What is the right way to have branch name as a Variable?...

Android build fails only in TeamCity server

android,android-studio,mercurial,continuous-integration,teamcity
I am using TeamCity as my CI server.When I run a build for an android studio project it is failing. But when I open the cloned repository in Android Studio in the build server itself it gives a successful build. Please help me out.. EDIT:: When the checkout directory from...

Deploy Nuget package to multiple sites usingOctopus Deploy

teamcity,octopus-deploy,teamcity-9.0,octopus
I have 10 different sites that are the exact same site files just deployed to 10 different IIS sites. The only difference between the 10 sites is a web.config variable SystemID. This ID is used to pull the clients connectionstring from a DB before the user logs in. Once the...

TeamCity behind an Apache proxy server

apache,tomcat,proxy,teamcity
I have installed latest TeamCity 9, now I want to access it from the public Internet via HTTPS. So I followed the instructions to setup TeamCity behind an Apache proxy server, as described in the official docs. Now when I try to access the TeamCity server in the browser I...

Is it possible to run a script when a build is tagged in Teamcity?

tfs,tags,teamcity,build-automation
We are using TeamCity 9.x as are main CI server. I'm looking for ways to run a script (PowerShell, Python, ...) when a build is tagged. Is this possible? The only thing I can think of is to write a simple service which polls the REST API for the last...

Spring-boot : how to execute multiple test classes by just starting the service once using rest-assured

spring-boot,teamcity,rest-assured
I am writing my spring-boot tests using rest-assured and these annotations on the test class - java class 1: @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = ApplicationSErvice.class) @WebAppConfiguration @IntegrationTest("server.port:8083") public class MyTestClass{ } java class 2: @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = ApplicationSErvice.class) @WebAppConfiguration @IntegrationTest("server.port:8083") public class MyTestAnotherClass{ } Question here is , if I have to...

Adding TeamCity build configurations to (proper) source control

version-control,automation,teamcity
We have over 100 build configurations in Team City, and I've come to realize over the past few months that these assets are just as important (if not more so) than the actual project assets (code, config, etc) we are delivering. To that end, I know TC provides it's own...

Team city template missing

teamcity
I was going to reuse teamcity configuration to new environments. Looks like the configuration is based on a template, but actually there is no clickable link to teamplate and I can't find it in the root project. I was thinking that the template was deleted but team city doen't allow...

Publishing VSTO add-in using MSBuild gives error: The “SignFile” task failed unexpectedly. System.ArgumentNullException: Value cannot be null

c#,visual-studio-2013,msbuild,vsto,teamcity
I am trying to publish a VSTO add-in for Word using MSBuild on a TeamCity build server without Visual Studio. I've done the stuff from these two blog posts: http://kentb.blogspot.com/2008/08/building-vsto-projects-without-visual.html http://www.wiktorzychla.com/2011/02/msb3147-could-not-find-required-file-on.html My build file is my Visual Studio solution and my target is "publish". ClickOnce publishing in Visual Studio 2013...

How to fetch the Value of Teamcity Configuration in java?

teamcity
I have a piece of java code where I have to display the Teamcity build configuration name. This piece of code will be executed in one of the steps configured for the configuration. can we read value of the env variable %env.TEAMCITY_BUILDCONF_NAME% set in Teamcity configuration settings and use or...

Passing an environment variable (parameter) to dependency project in TeamCity

continuous-integration,environment-variables,teamcity
I have a build chain with two projects: A is the root project, B depends on it. B has two dependencies configured: an artifact and a snapshot dependency. One build configuration for B has an environment variable (parameter) set. However, I also need this parameter set for the root project...

How to get the checkout directory of project dependencies in TeamCity?

configuration,dependencies,teamcity
I am using TeamCity as build server and have a little trouble when configuring projects and their dependencies. Eventually I want to get the checkout directory of project dependencies to configure certain build steps. For that I have the variable %teamcity.build.checkoutDir% for the checkout directory of the project itself. However,...

How do I import surefire-reports to Teamcity 9 webconsole?

maven,teamcity,surefire
I use Teamcity 9 to trigger a Maven buildstedp. Maven is set up to run Fitnessetests in JUnit tests. From Maven, I use the surefire-reports maven plugin and see that Teamcity generate ./buildAgent/work/xxxxx/target/surefire-reports/TEST-Test.xml files. I also see that I have managed to to set up Teamcity with "XML Report Processing"...

TeamCity Build Configuration to populate environment variable from XML

xml,teamcity
When editing the settings for a Build Configuration in TeamCity, is there a way of parsing an XML file to generate an environment variable that will later be used in the Build Steps? The XML file I want to parse (let's say version.xml) contains the version number that is going...

Branch checkout directory with Teamcity

teamcity
I have 3 build configurations: windows, osx and ubuntu. I also have two branches (generally): master and next. I've configured TC so that whenever a checkin occurs on either of the branches, the 3 builds are kicked off. I also have a 4th config called deploy which pushes the builds...

Retrieve --packageversion passed from TeamCity as a command line argument

teamcity,octopus-deploy
When I create release from TeamCity, I specify --packageversion %build.number% as an additional command line argument. Is there a way to read that variable in Octopus Deploy? Looking at documentation, I've found only one variable containing "packageversion": Octopus.Action.Package.NuGetPackageVersionand it doesn't seem like what I need as it is specific to...

Restart TeamCity server via web interface

teamcity,restart
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.

Using Teamcity to deploy css into git repository

git,tfs,teamcity
I have a git repository set up for our angular project. The styling for the website is being worked on by a separate front end team who will be checking in their work to a TFVC repository in TFS. We are using Teamcity for CI. I would like to be...

AutoMapper test fails on implicit widening conversion in TeamCity build but not locally

visual-studio-2013,teamcity,automapper
I have the following AutoMapper configuration: Mapper.CreateMap<Source, Dest>() .ForMember(dest => dest.InitiatorUserAccountUID, opt => opt.UseValue(0)); InitiatorUserAccountUID is of type long. The Mapper.AssertConfigurationIsValid() unit test passes locally, but fails on TeamCity with the following error: AutoMapper.AutoMapperConfigurationException: The following property on System.Int64 cannot be mapped: InitiatorUserAccountUID When I cast 0 to long explicitly...

TeamCity checkout GitHub repo to specific absolute path

github,path,teamcity,git-checkout
My TeamCity VCS Root step needs to checkout a specific GitHub repo to a specific absolute folder on the agent ( Windows server ) : c:\github\{organization}\{repo} I'm not understanding how to construct my checkout rule to do this. By default, checkout rules are relative to the checkout dir which is...

How can i get Team City builds to show up in TFS's build explorer

tfs,teamcity,coded-ui-tests,tfs2013,mtm
So here's the setup we have right now 1) We use TFS2013 for our code repository 2) We use TeamCity to do our builds 3) we have our tests created in CodedUI From what I've read online is that for the CodedUI tests to run automatically, they need a build...

Exporting coverage data from build machine

teamcity,code-coverage
I was working on team internal KPI's lately and I thought that code coverage/number of unit tests will be a great measure. In our CI build pipeline we're using NUnit to run test and JetBrains dotCover to generate coverage report - everything works great and we have that fancy "statistics"...

How to change target url based on git branche?

git,teamcity
We are using TeamCity with the Deployer plugin and we need to copy our build into a remote server. The server adress will depend on the git branche. For example : branche master as "target url : \server1\dev\" | branche trunk will be in "\server2\dev" I tried to specify it...

Why does my gulp/teamcity build fail with “Assertion failed: 0, file src\uv-common.c, line 103”?

node.js,teamcity,gulp,teamcity-9.0
My TeamCity build is randomly failing with the following message: [16:25:45][Step 1/2] [16:25:45] Build complete! [16:25:45][Step 1/2] [16:25:45] Finished 'build' after 3.32 min [16:25:45][Step 1/2] [16:25:45] Starting 'test'... [16:25:48][Step 1/2] Assertion failed: 0, file src\uv-common.c, line 103 [16:25:48][Step 1/2] Process exited with code 3 [16:25:48][Step 1/2] Step Gulp (Command Line)...

How to archive a build configuration in Teamcity?

teamcity
Is there a way to archive or temporarily hide a build configuration in Teamcity? The documentation only mentions pausing here: https://confluence.jetbrains.com/display/TCD8/Build+Configuration

Publish nuget package during TeamCity build to Octopus

teamcity,octopus-deploy
There is a known problem that if you deploy during a TeamCity build, a previous version will be deployed (as the current will be available only after the build is finished). Documentation suggests creating a secondary TeamCity BuildConfiguration as a workaround but it sucks and seems not to work anymore...

How to prevent TeamCity Build agent from removing work folders

teamcity
My build script contains a local properties file that is used to set machine-specific values (such as base directory for the build). These are unique for each machine that the source is downloaded to. When the build agent hasn't been run for a while, it removes the work folder for...

Manually add a nupkg file to TeamCity Feed?

nuget,teamcity,nuget-package
I have a TeamCity server with its Nuget feed enabled. I would like to manually add some third-party nupkg files to it. Is it possible to do so?

Execute build file for Teamcity locally

deployment,msbuild,command,teamcity
I'm going through the tutorial from this website which explains how to use a custom MSBuild script (*.build). Because I'm new to this topic my question is how I can locally test the custom MSBuild script without Teamcity/VCS. Knows anyone the command for the command line? Or isn't that possible?...

Process text file by indented pattern

regex,awk,sed,teamcity,pc-lint
I've tried some combinations of sed with s/regex/../ but I was not successful. So here is my question: I have a text file which look something like this (PCLint output) --- Module A Info: indented message 1 Note: indented message 2 Warning: indented message 3 --- Module B --- Module...

How to update TeamCity Agents to the latest fastlane tools gem

ios,ruby-on-rails,deployment,teamcity
I am currently using TeamCity 9.0.3 running on a Mac Mini. Right now the duties of this build server are to compile my iOS project on each commit and run unit/ui tests. When that is all complete, I am using fastlane by KrauseFx to send my beta testers updates. My...

Installing Teamcity build agent as a user: failed to install the service. selected account does not have enough rights

automation,continuous-integration,teamcity,build-agent
I want to install a TeamCity BuildAgend as a user. When entering my user credentials here: I always get this error: NOTE: My account (user) is Administrator with full permission! How can I do this?...

How to define WIX agent requirment in TeamCity?

msbuild,wix,teamcity
I have add a WIX installer project to solution in Visual Studio 2013. The project is built with every commit on TeamCity. There are several build agents connected to TeamCity cloud, but only some have WIX installed. Usually I would add the build agent requirement, so only the computer with...

Teamcity - Multiple web project in a single repo - deploy only some of them

git,teamcity,webdeploy
I have a git repo which contains a single .Net solution with several web applications (public site, internal site, public services) and a shared class library project. I want to deploy some of the projects based on the changes that were made. For example if I fixed a bug in...

How to setup a TeamCity build for a ASP.NET 5 project

msbuild,teamcity,asp.net-5,dnx
I'm trying to setup a CI server for a website that I'm developing, but I can't find any info regarding how to do it with the new ASP.NET 5.

Trigger Teamcity build on succesful Git merge

regex,git,teamcity
We want our Teamcity server to do an automatic build whenever someone merges something back to the master branch. To do this we have created a new VCS Trigger and checked the Trigger a build on each check-in-option. We have disabled the Quiet period mode and added a regular expression...

How can I associate a project to an agent pool on TeamCity?

teamcity,agent,buildconfiguration,agents
For my automated tests I have a project added to TeamCity server and 2 Agent Pool, one is a Windows Server and the other one is a MAC. The default agent pool is WIN but I wanted to run my tests on the MAC server. To change the agent pool...

“Fork=true” with Gradle: How to enable it?

android,gradle,teamcity,android-gradle
I´m learning TeamCity Integration Server today and I´m trying yo enable Jococo Reports with my Android Gradle based Application. This document shows me how to enable Jococo coverage, with the following warning: Make sure your tests run in the fork=true mode. Otherwise the coverage data may not be properly collected....

TeamCity config transform error

visual-studio-2013,build,teamcity
I'm trying to switch out a web config file using team city so that each deployment has the correct settings. I've added an AfterBuild target in my .csproj file <Target Name="AfterBuild"> <Delete Files="$(TargetDir)$(TargetFileName).config" /> <Copy SourceFiles="$(ProjectDir)\Config\Web.$(Configuration).config" DestinationFiles="$(TargetDir)$(TargetFileName).config" /> </Target> and then called this in team city in the "Targets" section...

TeamCity 9.x Setting up an External Database with unnamed(NULL) MSSQL instance

database-connection,teamcity,teamcity-9.0
I'm evaluating TeamCity 9.0.4 and using HSQLDB. Now trying to setup MS SQL Server 2014 as External Database.I don't have a named instance(NULL). So I tried the following connection URL connectionUrl=jdbc:sqlserver://<host>:1433;databaseName=<database name> connectionProperties.user=<user> connectionProperties.password=<password> When I trying to load the build server I'm getting this message. TeamCity is starting Continuing...

TeamCity launch application after build

.net,teamcity
As the last step of my build I'd like to deploy my WPF application. I need to copy it to stage and launch it. Is there any solution for it?

Accessing hidden teamcity artifacts

powershell,teamcity,dotcover,teamcity-7.1
So, the key element here is hidden artefacts, also known as those that appear under .teamcity/ part of the build artifacts. Some context: We currently run dotCover over our NUnit Test step to report on our test coverage. This places a compilation of the results in a file named CoverageResults.xml...

TeamCity REST API: Triggering Build with Custom Artifact Dependency

api,rest,teamcity,atlassian
I'm trying to trigger a custom build using the TeamCity 8.1 REST API (see https://confluence.jetbrains.com/display/TCD8/REST+API#RESTAPI-TriggeringaBuild). My builds run fine and I'm able to specify custom branches and properties with no issue. My goal is now to specify a custom artifact dependency for the builds I'm triggering. The response I receive...

Teamcity build fails because of EF code migrations

entity-framework-4,teamcity,code-first-migrations,teamcity-8.0
My TeamCity build fails because I have a project that has 2 EF Code Migration configurations in it. From the build log: [12:39:58]Checking for changes [12:39:58]Collecting changes in 1 VCS root (1s) [12:40:00]Clearing temporary directory: C:\TeamCity\buildAgent2\temp\buildTmp [12:40:00]Publishing internal artifacts [12:40:00]Checkout directory: C:\TeamCity\buildAgent2\work\1679b8b30e00ad0 [12:40:00]Updating sources: server side checkout (2s) [12:40:03]Step 1/8:...

What does a grayed-out build in TeamCity mean?

teamcity,teamcity-8.0
Some of our builds in TeamCity are grayed out, like they were disabled. It often not obvious why. When I examine the details about the build, I find nothing noteworthy. What exactly does this color signify? Also: if, like in the picture above, there is a red build before the...

How to merge and commit to a branch in TeamCity

asp.net,git,deployment,teamcity,springloops
I want to figure out how to integrate TeamCity builds with Springloops deployments. Lets say I have a Git repo called api that has two branches dev and dev.build api |-- dev |-- dev.build I have set up TeamCity with a VCS trigger on dev to build upon commit. Which...

How to provide credentials to JCIFS in TeamCity for the Deployer Plug In?

teamcity,jcifs
Using the Deployer plugin, I'm getting this exception: [13:37:11]Step 2/2: Copy Files (SMB Deployer) [13:37:11][Step 2/2] Starting upload via SMB to \devwebserver\WebApps\TCTest\TCTestDeploy [13:37:11][Step 2/2] jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password. [13:37:11][Step 2/2] Step Copy Files (SMB Deployer) failed Based in these instructions I added the following entries...

Selenium grid and TeamCity integration

teamcity,automated-tests,integration,selenium-grid
I'm new to TeamCity and Selenium Grid just trying to get my head around it. I'm trying to install Selenium grid. I am a bit confused about starting Selenium Grid. So on the Selenium site it explain to run commands: Hub: java -jar selenium-server-standalone-2.44.0.jar -role hub Node: java -jar selenium-server-standalone-2.44.0.jar...

Where to find older versions of Android Support Library?

android,teamcity,android-support-library
I am setting up CI server using TeamCity and I get a Gradle bust where it cannot find an Android Support Library that one of the modules uses. This is the error: ##teamcity[buildProblem identity='-1301271058' description='org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.support:support-v4:21.0.3.|nSearched in the following locations:|n https://jcenter.bintray.com/com/android/support/support-v4/21.0.3/support-v4-21.0.3.pom|n...

I installed tcWebHooks on TeamCity, options not showing

teamcity,teamcity-9.0
I'm using TeamCity Professional 9.0.2 (build 32195). I installed the tcWebHooks plugin: But I do not see any changes to the admin, and I cannot determine where to add web hooks to my build. I see no additional options in either the Project configuration or the Build configuration. Did I...

Teamcity and Unit Testing Windows Store apps

unit-testing,windows-phone-8,windows-phone-8.1,continuous-integration,teamcity
I've been struggling to make Teamcity 9 compile and run Unit Tests for my Visual Studio solution. I have a Windows Phone 8.1 (WinRT, not silverlight) project and a "MyProject.Common.dll" portable class library with common functionality. I created a "Windows Phone Unit Test App" project. If i run it from...

Xamarin 9-Patch in Library Solution & Referenced via TeamCity NuGet

android,xamarin,nuget,teamcity,nine-patch
The Configuration In a library solution is an Android library project (let's call it Core.Droid) that has a 9-patch image as shown in this screen shot of the project This solution is built using TeamCity such that the project is a NuGet package. Another Solution contains an Android project (let's...

TeamCity: Disable trigger by schedule

teamcity
I have VCS trigger which works perfect. But I want disable it every day from 20.00 till 6.00. (Server at night perform some performance critical tasks and developers rarely commit after 20.00) Is it possible?...

TeamCity Server - Unable to find P4 command-line client in path

osx,teamcity,perforce,server
I've done quite some research, to find other people with similar problems, but the closest I came to was people who were using TeamCity on just platform (either Mac OS X or Windows) and thus could afford to use the full path to p4 (e.g. /usr/local/bin/p4 or C:\Program Files (x86\Perforce\p4.exe)....

Continuous deployment and running with TeamCiy

.net,continuous-integration,teamcity,exe,continuous-deployment
I have a project that is built into an executable. Some kind of server. And a Team City as CI. I configured Team City to automatically build my sources. I would like to achive the following steps: Sources are built by Team City when someone commits into repo. (done) Built...

How to get TeamCity to show # of ignored tests?

.net,unit-testing,msbuild,teamcity
I have a build on TeamCity with MSBuild building a .NET 4.5 solution. MSTest running the unit tests with the bundled dotCover used for code coverage. The build works, the unit tests run, and I get the code coverage just fine, but it only shows the # of failed tests...

How to get the return value of instruments?

ios,osx,bash,teamcity,instruments
I'm using instruments inside a bash script on a continuous integration server. I would like to know when a command as failed in the script, so I can exit prematurely from it and mark the build as failed. instruments displays a LOG ERROR to the console, but I don't succeed...

How to programatically trigger cleanup?

teamcity,teamcity-9.0
I'm having a very busy build server. On good day we create almost 200gb of artifacts. Cleanup policy can be run once a day which is not enough for my case. I've searched the teamcity documentation and found zero API endpoints to support trigger cleanup manually. Is it possible to...

API for iTunes upload via TeamCity

teamcity,itunesconnect
I am using TeamCity 9.01 as my continuous integration server. I am planning to have a build step to upload an .ipa file to iTunes. How can I accomplish this?

Pass on branch name to a script in teamcity

teamcity,teamcity-9.0
I have a python script that runs as build step in teamcity 9.0. Now I need to know the branch name from which the build is triggered. I could use %teamcity.build.branch% to get the branch name. But I need it to be passed on to my script so that I...

Show first lines of build log in teamcity email template

logging,build,teamcity,build-error,email-notifications
I'm new to FTL templates and I want to show the first 100 lines of the build log. I'm given the original script to show the entire build log from the TC documentation, which is this: <#list build.buildLog.messages[1..] as message><#-- skipping the first message (it is a root node)--> <#if...

How do I set up a TeamCity build job to execute a maven job with no pom

maven,teamcity
We have an in-house developed MOJO that generates content and doesn't require you to have an existing project or POM. Think of the maven archetype plugin, where you can just run mvn [mojo]:[goal] and have maven just execute that goal without a POM. This MOJO connects to a specific database...

Default value for checkbox parameter in TeamCity

teamcity,teamcity-9.0
I'm building nuget in TeamCity and would like to append suffix "-pre" to version number when build is triggered by a checkin. And when build is triggered manually, I'd like to be able to provide a checkbox if this build should be a preview release or production-worthy. I've got a...

TeamCity non-deterministic build triggering with Git

git,teamcity,git-flow,buildconfiguration,vcs-trigger
I use a GitFlow branching strategy. I like to have 3 build configurations per project: Integration - builds from develop, feature/* and hotfix/* with branch specification +:refs/heads/(develop) +:refs/heads/feature/() +:refs/heads/develop/() +:res/heads/(hotfix/*) Beta - builds from beta/* with branch specification +:refs/heads/(release/*) Release - builds from master with branch specification +:refs/heads/(master) Note the...

Running Karma and Protractor tests with or without a headless browser

selenium,teamcity,protractor,karma-runner,headless-browser
I am confused about running Karma and Protractor on a TeamCity CI server. Should I run these tests with a headless browser or not and how can I do that?

Teamcity 9: How to add git short hash into assembly info patcher

git,teamcity,teamcity-9.0
I'm trying to use assembly info patcher to create a version number something like: 1.2.3.1a3c19e where the last bit is the git short hash. I've tried using a powershell script build step to create the short hash (as I cant find a variable that has it) and adding this to...

How do I get NDepend to do a baseline comparison on TeamCity?

continuous-integration,teamcity,ndepend
I've got NDepend running on TeamCity. I want to use the baseline feature so that it only reports on violations introduced since the baseline. On my local machine, I can store the results in a baseline folder and everything is fine. But on TeamCity, this baseline folder doesn't exist and...