We're using latest at the moment, 6.0.2, TeamCity build without built-in Git plugin, but with a NANT target that performs the following:
- Checks whether user setup GITFOLDER environment variable and passed git.repositories.folder variable. GITFOLDER must point to a folder where git.exe resides. git.repositories.folder variable must point to a folder, which contains folders with Git repositories. Repositories folder must be different from agent's checkout directory because we must clean build's working folder.
- If there is no folder of a project inside git.repositories.folder folder, then we perform git clone <url> "git.repositories.folder\projectname", which will take some time. This operation happens only once.
- Executes git pull git.repositories.folde folder\projectname
- Copies all files to the build agent's working folder
- Starts a build
the question is - is it possible to have such functionality built into TeamCity ?