Questions tagged [teamcity]

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 historically related to Hudson) and CruiseControl.

It was first released on October 2, 2006. TeamCity is commercial software and licensed under a proprietary license. A Freemium license for up to 20 build configurations and 3 free Build Agent licenses is available.


**Tagging recommendation:**
It is recommended to use the tag together with the version specific tag, f.e. , .
**Resources:**
6095 questions
4
votes
1 answer

Teamcity NUnit fails when using JetBrains dotCover

My build fails with this log: [12:13:40]: Checking for changes [12:13:41]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp [12:13:41]: Checkout directory: C:\TeamCity\buildAgent\work\9fecf8ffe0e03cce [12:13:41]: Updating sources:…
Simon
  • 3,235
  • 5
  • 36
  • 47
4
votes
3 answers

Extracting strings from String in Powershell

I have a string long string: its a teamcity buildLog This is a buildLog from teamcity. [11:27:30] : [Step 5/5] 15:27:30 INFO: Average times: total 0.455, latency 0.455, connect 0.004 [11:27:30] : [Step 5/5] 15:27:30 INFO:…
born2Learn
  • 1,253
  • 5
  • 14
  • 25
4
votes
1 answer

What does "Enforce overwrite all files" do in TeamCity TFS VCS Root configuration?

I occasionally have a problem where it appears that TeamCity checks out an old version of a file. For instance I fixed a failing test, but TeamCity didn't get the latest version, so it kept failing. I updated an install script on a new branch, but…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
4
votes
1 answer

Strange NullPointerException in maven-resources-plugin

About twice a day we get a NullPointerException in our build: [06:44:23]: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project spring-lib: Execution default-resources of goal…
Eran Harel
  • 2,325
  • 19
  • 28
4
votes
1 answer

Where to place deployment scripts in source control in a CI Configuration?

I am working on a distributed solution (written in .NET) that includes WCF services, Windows managed services and has dependencies to other native and managed solutions. The primary goal of the project is to perform various testing of another…
oleksii
  • 35,458
  • 16
  • 93
  • 163
4
votes
1 answer

Determine if your build is running as a private build

As part of my build i store some of the output if a build is successful. But id rather not do this if its a private build. Is there a build parameter than i can check so i can skip this?
James Woolfenden
  • 6,498
  • 33
  • 53
4
votes
1 answer

Mercurial + TeamCity - Recommended setup

Does anyone have any recommended best practice for setting up TeamCity with Mercurial? We'd previously been using SVN as our source control provider which worked beautifully, but I'm struggling to get this working as smoothly with Mercurial. I'm…
James Crowley
  • 3,911
  • 5
  • 36
  • 65
4
votes
3 answers

Accessing teamcity parameters in kotlin DSL

I am creating a kotlin DSL for a TeamCity project, and want to get the current branch name in the actual kotlin script. If I run a script step, the current branch renders correctly script { name="print branch" scriptContent = """echo "Branch…
Jon Bates
  • 3,055
  • 2
  • 30
  • 48
4
votes
4 answers

Continuous integration and Automated testing strategy

I’m working in a company that uses Continuous Integration (TeamCity). Every time someone does a check in the CI software starts a build and runs all the Unit/Automated Test . The problem is that we got more than 7000 unit tests + 756 automated…
Massimiliano Peluso
  • 26,379
  • 6
  • 61
  • 70
4
votes
4 answers

TeamCity .NET Runner is incorrectly quoting Platform property when Any CPU used

I have some .NET Framework projects being built by TeamCity 2020 (latest version). Currently the "MSBuild" Runner type is used - as this is deprecated, I'm trying to convert the build tasks to use the new ".NET" Runner type. When trying to set the…
Graham Clark
  • 12,886
  • 8
  • 50
  • 82
4
votes
1 answer

TeamCity Remote Powershell Access Denied Suddenly

Disclaimer: I am not a DevOps guy so please forgive any ignorance. I'm learning this stuff to expand my understanding. I've enabled remote Powershell on a Windows Server 2019 instance in order to stop/start scheduled tasks during deployment of files…
JP Damstra
  • 545
  • 7
  • 25
4
votes
2 answers

TeamCity build labeling failing intermittently on a git repository

My build is running on Windows Server 2003, TeamCity 6.0.3. The git repository is stored on the same server and is accessed via cygwin's sshd and gitd. My vcs configuration in TeamCity is as follows: Fetch URL: git://server/Repo Push URL:…
Vadim
  • 17,897
  • 4
  • 38
  • 62
4
votes
1 answer

Close-SMBOpenFile throws error and isn't caught in try-catch

We are using a TeamCity powershell in script execution mode as part of a pipeline with snapshot and artifact dependencies. We have a fairly robust system and have been using this particular process for a couple years, so this isn't brand new code…
jcolebrand
  • 15,889
  • 12
  • 75
  • 121
4
votes
1 answer

Teamcity - last commit author and comment - pass into ant script

How to pass svn last commit author and comment to ant build script, invoked via Teamcity runner?
qwazer
  • 7,174
  • 7
  • 44
  • 69
4
votes
1 answer

TeamCity + MSTest - Run only failed tests?

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…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182