4 comments
Comment actions Permalink

Are you seeing this error on the server or agent? 

The Git executable is used by the server for Git garbage collection of local git caches. If the executable isn't found, it may display a warning in Administration | Server Health. Interestingly, I'm not sure that this health check runs unless there are git caches. Do you have anything located at <TeamCity Data Directory>/system/caches/git?

For details on Git Garbage Collection, please refer to: https://www.jetbrains.com/help/teamcity/git.html#Git_gc.

 

0
Comment actions Permalink

Hi Eric Borchardt,

Thank you for your reply. Actually I am using an agent to fetch the code from Github, build it into docker image and push it into Dockerhub. So, should I install Git client on that Agent to fix the warning? Thanks

Regards,

Khopi

 

0
Comment actions Permalink

I would recommend installing Git on the agent in this case. The agent can then use Git to checkout the code directly from GitHub, rather than using server-side checkout. I would also suggest installing it on the TeamCity server so it can run Git garbage collection (see my previous comment).

Please see our documentation covering the Git path on TeamCity Agents: https://www.jetbrains.com/help/teamcity/git.html#agentGitPath

0
Comment actions Permalink

Ok thank you

Regards,

Khopi

0

Please sign in to leave a comment.