Git cache removal in Bamboo
Symptoms
The directory <BAMBOO_HOME>/xml-data/build-dir/_git-repositories-cache
tends to get quite large, consuming a lot of disk space.
Workaround
Remove the cache manually. To do so:
- Shut down the Bamboo instance;
- Delete the
<BAMBOO_HOME>/xml-data/build-dir/_git-repositories-cache
directory; - Restart the Bamboo instance.
For Bamboo versions after 4.4.3, there are settings under Administration > Build Resources > Repository Settings
to configure the removal of these files.
In the latest Bamboo versions (5.x) there is a user interface feature (Overview > Repository Settings) that allows you to clean the Git cache without requiring a shut down of the application.