1
votes

I am running TeamCity 8.0.3 with 1 build plan that also includes MSTest builder.

the build server does not run a build agent, so the build artifacts are created on developer machines which are serving as build agents. or so i thought..

looking at the build server, under \ProgramData\JetBrains\TeamCity\system\artifacts\Team\MyBuild#\MStest i see 37 folders each with a separate set of assemblies, which is interesting because there are only 25 unit tests.

i have 3 build steps

MSBuild   Build file: src/mySolution.sln  Targets: default
Create Artifacts Dir   Command Line  Custom script: if not exist Artifacts\MSTest mkdir 
^^ creates artifacts dir on build agent
MSTest
^^ includes Permal.BSG.Manager.UnitTests.dll and runs ms test 2012 on build agent..

as far as i know it should all happen on build agent. not sure why the server is hoarding all those copies of assemblies??

1

1 Answers

1
votes

I'm a little bit confused by your question, but I'll try to provide a few answers:

  • If you are asking why the TeamCity server has a copy of your unit tests binaries at all, than you'll want to take a look at your artifact publishing configuration on the first page of your build configuration because it'll be configured to publish them, which isn't a bad thing unless you don't want them.
  • If you are wondering why there are so many copies of the artifacts on the build server, than either you are just seeing one directory for each build stored on disk with a directory named with the internal build number.
  • ... or your build script is creating a new directory on the build agent each time it runs and all the directories from previous builds are getting published again under the new build's artifacts, take a look at the "Clean all files before build" option on the VCS tab of the build configuration to ensure the build agent stays clean.