Questions tagged [teamcity-9.0]

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 historicall related to Hudson) and Cruise Control.

Useful Links

320 questions
3
votes
1 answer

Git push from TeamCity 9.0.3 build

I'm trying to make a TeamCity build configuration that checks out a git repo, makes a small change to a text file in the repo, then pushes the change back to the repo. I am having a hell of a time getting the git push command to work from the Ubuntu…
Matt Chambers
  • 2,229
  • 1
  • 25
  • 43
3
votes
1 answer

Is there any way i can read TeamCity user defined parameter values using PowerShell script

Is there any way i can read TeamCity user defined parameter values using PowerShell script. Following is what I'm trying to do. I have already created following parameters in the TeamCity build configuration Variable Name Variable…
mahesh
  • 468
  • 2
  • 8
  • 25
3
votes
0 answers

Compile error on TeamCity using Microsoft Build Tools 2015, but not in Visual Studio 2015

Following instructions to upgrade my solution to support the new C# language features, I changed my TeamCity build step's MsBuild Version option from Microsoft .NET 4.5 to Microsoft Build Tools 2015. I can build the solution fine in Visual Studio…
Jon G
  • 4,083
  • 22
  • 27
3
votes
1 answer

Configure cucumber in TeamCity to run unit tests only using tags (Maven)

I have both unit and acceptance tests in a maven project (spring boot). I would like to run unit tests only when my build runs in TeamCity. I am using cucumber. When i run the tests via command line, everything works as expected (only unit tests are…
sawe
  • 1,141
  • 14
  • 24
3
votes
1 answer

Any other way to put a value next to build name except 'teamcity.build.branch'?

Is there any other way to put a value next to build name except 'teamcity.build.branch'? I need to specify a metadata next to each build that might be dynamic or might be result from a previous build configuration part of the build chain using TC…
Crazyjavahacking
  • 9,343
  • 2
  • 31
  • 40
3
votes
2 answers

"npm publish" not working in Team City

I am trying to use Team City CI to run tests and publish the NPM package to local sinopia repository. I had setup sinopia repository on a server and i can successfully publish npm packages to that repository with npm publish command from my local…
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
3
votes
1 answer

using team city to insert build number & perform string replacement operations

I am using team city 9.1.7 version on Windows 2012 server. As part of the build steps, I build a nodejs based application using command line. The output is bunch of Javascript and html files. In the next step (after the build is over & output is…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
3
votes
1 answer

Agent runs unknown build we're not aware of

Description For some reason my .Net Build Agent randomly gets disconnected and I see this message (please see the screenshot): Agent runs unknown build we're not aware of Question What is the reason for this behavior?
A-Sharabiani
  • 17,750
  • 17
  • 113
  • 128
3
votes
1 answer

Converting a TeamCity VCS commit to modification ID

I'm trying to run a TeamCity build via the REST API using a particular git commit. Creating a new build via the API requires a TeamCity modification ID, not a git commit reference. How can I convert a git commit to a TeamCity modification ID? The…
MunkyJunky
  • 379
  • 4
  • 14
3
votes
6 answers

When multiple unit tests copy the same file, running all unit tests fail

Description I am writing unit tests for a method, which copies a file from a source to a destination. Basically it includes this code: public void MyMethod() { // ... File.Copy(source, destination, true); // ... } In my unit test…
A-Sharabiani
  • 17,750
  • 17
  • 113
  • 128
3
votes
1 answer

push NuGet packages to TeamCity NuGet server

I have turned on TeamCity's NuGet Server and I want to push in common packages (i.e. from public sources such as NuGet.org) because the build server cannot see outside our company, so restoring packages on the build server from NuGet.org is not…
Colin Mackay
  • 18,736
  • 7
  • 61
  • 88
3
votes
0 answers

Teamcity 9 - Artifact dependencies parameters

My question is about the artifacts dependencies parameters. I have different branches add same configurations running on these branches in projects. In some configurations I consume an artifact dependency specific to the branch. And I have different…
fsureau
  • 31
  • 2
3
votes
1 answer

TeamCity and Maven support

I noticed that TeamCity is not supporting Maven 3.3.x as a bundled plugin. So I placed Maven version (latest) under TeamCity master (TC/plugins/.tools) and it deployed the Maven to all build agents. The problem is that there are missing…
Nir Koren
  • 241
  • 4
  • 11
3
votes
0 answers

Simple approach to updating AssemblyInformationalVersion via TeamCity's AssemblyInfo patcher feature

By default a Visual Studio C# Library/Console etc project comes with an AssemblyInfo.cs file that does not include AssemblyInformationalVersionAttribute. TeamCity allows patching this attribute if found in AssemblyInfo.cs using AssemblyInfoPatcher.…
aateeque
  • 2,161
  • 5
  • 23
  • 35
3
votes
2 answers

Prevent teamcity from cancelling a build

We have a database tester build that first clones a database before it runs the tests. We would like to prevent this build from being stopped/cancelled by a user. The problem is, if the build is cancelled/stopped manually during the cloning process…
Andrew Burns
  • 346
  • 4
  • 15