was alerted by one of our devs this morning that one of our build agents is out of disk space. I’ve ran a tool to identity what folders are taking up the most space and one of the culprits is the sonar cache folder. Its currently sitting at just under 16GB!
Is there a setting to trim this folder or is it a case of manually deleting them?
Using the .NET Framework version of the Scanner for MSBuild
Starting: Run SonarCloud analysis
Task : Run Code Analysis
Description : Run scanner and upload the results to the SonarCloud server.
Version : 1.44.0
Author : sonarsource
Help : Version: 1.44.0.
and from the yaml, we are using the following tasks:
SonarCloudPrepare@1
SonarCloudAnalyze@1
SonarCloudPublish@1
Thanks for your report!
We have an internal ticket to fix this infinitely-growing cache problem. I’ll add your report to it.
In the meantime it is safe to wipe it completely to restart from scratch. There is no setting for this, it is a manual operation.