Where does TeamCity 2017.x store the Git Repo data while it's doing its first pull?

Our repo seems to be too big to download and Git is timing out. We usually copy over the files manually and just do a fixup later. We'd like to find where team city is storing its temporary git checkout so that we can do the fixup since we can't pull successfully using the normal way. 

We only have one build agent and we can't seem to find it in the work folder inside the buildagent folder i.e.
%buildAgentFolder%\work

0
1 comment

Hi,

TeamCity does two actions when pulling a repo:
-First, it pulls it in the server. While it doesn't store the raw data, it does store the .git directory holding all the information about the git objects. This is used within TeamCity to ensure that the server can pass proper revisions, branches, etc to the build agents to make the builds.
-Once a build starts, they are pulled in the agent, where exactly is defined as the checkout directory. By default, it will be something like <agent_installation_folder>/work/<some_hash>, with the hash being based on the VCS configuration and shown in the "work/directory.map" file, but it's configurable in the VCS Settings of the build configuration, if you decide to set the checkout directory manually.

So before doing the manual move, you need to ensure which of the two is actually failing to download. On the other hand, if you don't need all of the repository for your builds, please consider using checkout rules and maybe more granular builds, that might help with the time.

0

Please sign in to leave a comment.