Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git LFS not working on TeamCity agent

I set up git-lfs on my private repository and everything works perfectly from the command line.

I set up my TeamCity build agents to have git-lfs installed and initialized. However, when I try running it though the TeamCity build, the git-lfs pull command hangs forever, and no data is transferred at all. My task manager shows git-lfs.exe existing, but being idle. When manually testing it from the work folder of the agent (on the agent machine), git-lfs pull or git lfs pull successfully downloads all the large files.

My build configuration has the git-lfs pull as the very first build step and it executes immediately after the sources have been updated.

Does anyone know why running git-lfs pull via TeamCity build process is any different than running git-lfs pull on the command line inside the build agent?

I'm using TeamCity 10.0.2 (42234) and my agents are updated.

like image 915
Vlad Avatar asked Oct 24 '16 19:10

Vlad


1 Answers

Run "git-lfs install --system" to enable lfs feature on agent.

like image 171
ccflames Avatar answered Oct 23 '22 21:10

ccflames