Git cache removal in Bamboo

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

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:

  1. Shut down the Bamboo instance;

  2. Delete the <BAMBOO_HOME>/xml-data/build-dir/_git-repositories-cache directory;

  3. 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.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.