Running Jenkins server with git as the source repository I came in to find my primary disk full.
The first thing to do was to find where the files were being used:
$ du -h / | sort -h
The git checkout directory inside my Jenkins workspace is 406G!!
$ du -h .git/objects/pack/
406G .git/objects/pack/
Easily fixed:
$ git gc --prune=now
$ du -h .git/objects/pack/
1.2G .git/objects/pack/
No comments:
Post a Comment