How do I get TeamCity to create the .git directory when building solution?

327 views Asked by At

The problem is, when I try to run the build, it errors saying " could not find .git directory". So I checked TeamCity's work directory on my agent for my project, and there is no .git directory!

Why doesn't TeamCity create the .git directory? Is there a way to enable this?

Team city version : 8.0.6 i am attaching snapshots of teamcity VCS settings.

enter image description here enter image description here

1

There are 1 answers

0
Yaegor On

VCS checkout mode / "on agent" should do the trick. Provided you do have the VCS root attached (which seems on the screenshot like you do not).