-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Description
I'm familiar with team city agent vs server checkout, and the dynamic repository feature.
I am using the gitversion meta runner for team city, using server checkout, passing argument to obtain the repo on the fly. Hitting this error - here is the log:
Running: C:\ProgramData\chocolatey\bin\gitversion.exe "C:\TeamCity\buildAgent\work\d8b51bbe303335d5" /url 'http://****@****.co.uk/scm/gc3/gluon.git' /b 'develop' /u '****' /p '*****' /output 'buildserver' /UpdateAssemblyInfo
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:52] Working directory: C:\TeamCity\buildAgent\work\d8b51bbe303335d5
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:52] Running on Windows.
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:53] Applicable build agent found: 'TeamCity'.
[19:00:40][Step 1/1] ERROR [07/06/16 19:00:40:56] An unexpected error occurred:
[19:00:40][Step 1/1] System.IO.DirectoryNotFoundException: Can't find the .git directory in C:\TeamCity\buildAgent\work\d8b51bbe303335d5
[19:00:40][Step 1/1] at GitVersion.GitPreparer.GetDotGitDirectory()
[19:00:40][Step 1/1] at GitVersion.ExecuteCore.ExecuteGitVersion(String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId, Config overrideConfig)
[19:00:40][Step 1/1] at GitVersion.SpecifiedArgumentRunner.Run(Arguments arguments, IFileSystem fileSystem)
[19:00:40][Step 1/1] at GitVersion.Program.VerifyArgumentsAndRun()
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:56]
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:56] Here is the current git graph (please include in issue):
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:56] Showing max of 100 commits
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:61] ERROR: fatal: Not a git repository (or any of the parent directories): .git
It says it can't find the .git directory.. Isn't it meant to create / fetch one based on the arguments I am passing? Any ideas?
Metadata
Metadata
Assignees
Labels
No labels