Problem when building on Teamcity Build Agents

We tried what you suggested and it failed as well. Then we investigated the steps performed more in depth with more people. We noticed that there’s a step which evaluates the branch name which failed on our system.

We’re not sure why, but we seem to have fixed it by changing the way the project is checked out on the build agent from our git-repo.

So if anyone is interested and can maybe confirm that this change is necessary, this is what we did:
First thing we changed was the branch name from refs/heads/master to just master, the second was to change the “useAlternates”-Flag from “Auto” to “NoMirrors”

So now everything is building fine. Thank you.