even after my build checks-out code i keep getting "fatal: Not a git repository (or any of the parent directories): .git"

as a first step in the build process when the code is checked-out
from the attached vcs root, a directory is created in agent's ./work
where the app code is shown as on the github account, but there
is no .git folder. strange!

on the vcs root configuration page 'Test connection' works and i
can also checkout the code manually on the host with the same
github url and ssh key as configured on the vcs root.

has anyone seen this before or knows how i can work my way
around this?

this is the output of teamcity-vcs.log:

[2011-06-10 07:58:35,234]  DEBUG [rmal executor 5] -      jetbrains.buildServer.VCS - Starting collecting changes for build configurations [httparty :: httparty {id=bt2}]

[2011-06-10 07:58:35,236]  DEBUG [ VCS executor 1] - Triggers.vcs.git.GitVcsSupport - Start fetch process for  (/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, git@github.com:vinayvinay/httparty.git#+refs/heads/master:refs/heads/master)

[2011-06-10 07:58:35,336]  DEBUG [ VCS executor 1] - Triggers.vcs.git.GitVcsSupport - Fetch process for  (/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, git@github.com:vinayvinay/httparty.git#+refs/heads/master:refs/heads/master) started

[2011-06-10 07:58:38,632]  DEBUG [ VCS executor 1] - Triggers.vcs.git.GitVcsSupport - Fetch process for  (/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, git@github.com:vinayvinay/httparty.git#+refs/heads/master:refs/heads/master) finished

[2011-06-10 07:58:38,632]  DEBUG [ VCS executor 1] - .git.GitVcsSupport.Performance - [fetch in separate process] root= (/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, git@github.com:vinayvinay/httparty.git#+refs/heads/master:refs/heads/master), took 3397ms

[2011-06-10 07:58:38,634]  DEBUG [rmal executor 5] -      jetbrains.buildServer.VCS - Finished collecting changes for build configurations [httparty :: httparty {id=bt2}], time spent: 3s,400ms

[2011-06-10 07:58:38,959]   INFO [rmal executor 6] -      jetbrains.buildServer.VCS - Requesting patch: root=git@github.com:vinayvinay/httparty.git#master {instance id=7, parent id=1}, cleanPatch=false, prevVersion=68c254f9c1d90430ec7da25e941625ba9e989799@13067bf95f8, newVersion=68c254f9c1d90430ec7da25e941625ba9e989799@13067bf95f8, buildType=httparty :: httparty {id=bt2}, buildId=21

[2011-06-10 07:58:38,959]  DEBUG [rmal executor 6] -      jetbrains.buildServer.VCS - root details: httparty {id=7; agentCleanFilesPolicy=ALL_UNTRACKED; agentCleanPolicy=ALWAYS; authMethod=PRIVATE_KEY_FILE; branch=master; ignoreKnownHosts=true; privateKeyPath=/home/ec2-user/.ssh/id_rsa_for_github; secure:password=*****; submoduleCheckout=CHECKOUT; teamcity:vcsRootName=httparty; url=git@github.com:vinayvinay/httparty.git; usernameStyle=USERID; vcs=jetbrains.git; }

[2011-06-10 07:58:38,960]  DEBUG [rmal executor 6] - .git.GitVcsSupport.Performance - [RevWalk.parseCommit] repository=/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, commit=68c254f9c1d90430ec7da25e941625ba9e989799, took: 1ms

[2011-06-10 07:58:38,960]  DEBUG [rmal executor 6] - .git.GitVcsSupport.Performance - [ensureCommitLoaded] root= (/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, git@github.com:vinayvinay/httparty.git#master), commit=68c254f9c1d90430ec7da25e941625ba9e989799, local commit lookup: 1ms

[2011-06-10 07:58:38,960]  DEBUG [rmal executor 6] - Triggers.vcs.git.GitVcsSupport - Creating patch 68c254f9c1d90430ec7da25e941625ba9e989799@13067bf95f8..68c254f9c1d90430ec7da25e941625ba9e989799@13067bf95f8 for  (/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, git@github.com:vinayvinay/httparty.git#master)

[2011-06-10 07:58:38,960]  DEBUG [rmal executor 6] - .git.GitVcsSupport.Performance - [RevWalk.parseCommit] repository=/home/ec2-user/.BuildServer/system/caches/git/git-999F135B.git, commit=68c254f9c1d90430ec7da25e941625ba9e989799, took: 0ms

[2011-06-10 07:58:38,960]   INFO [rmal executor 6] -      jetbrains.buildServer.VCS - Done requesting patch for root git@github.com:vinayvinay/httparty.git#master {instance id=7, parent id=1} cleanPatch = false, prevVersion=68c254f9c1d90430ec7da25e941625ba9e989799@13067bf95f8, newVersion=68c254f9c1d90430ec7da25e941625ba9e989799@13067bf95f8, buildId = 21; took 1 msec

[2011-06-10 07:58:39,458]   INFO [-8111-10 /RPC2 ] -      jetbrains.buildServer.VCS - Patch applied for agent=Default Agent {host=127.0.0.1}, buildType=httparty :: httparty {id=bt2}, root=git@github.com:vinayvinay/httparty.git#master {instance id=7, parent id=1}, version=68c254f9c1d90430ec7da25e941625ba9e989799@13067bf95f8

[2011-06-10 07:58:39,458]  DEBUG [-8111-10 /RPC2 ] -      jetbrains.buildServer.VCS - rootDetails=httparty {id=7; agentCleanFilesPolicy=ALL_UNTRACKED; agentCleanPolicy=ALWAYS; authMethod=PRIVATE_KEY_FILE; branch=master; ignoreKnownHosts=true; privateKeyPath=/home/ec2-user/.ssh/id_rsa_for_github; secure:password=*****; submoduleCheckout=CHECKOUT; teamcity:vcsRootName=httparty; url=git@github.com:vinayvinay/httparty.git; usernameStyle=USERID; vcs=jetbrains.git; }



thanks in advance for the help!
1 comment
Comment actions Permalink

Hi

Does your build script interact with git directly?
If so, change VCS checkout mode in build configuration settings to agent side.

Michael

0

Please sign in to leave a comment.