gitlab runner build clean up
wanted to know about cleaning up storage for gitlab runner in ec2 instance:
I found out /builds directory is taking up 45+ gb of storage
is there any ways to delete it ? I tried deleting old build through gitlab API it cleared only 8gb
is it safe to delete build directory of gitlab runner to free up the space ?
balonik
December 13, 2023, 9:30am
2
is it safe to delete build directory of gitlab runner to free up the space ?
Yes, it is used only as cache. You can delete it anytime. Everything will be recreated as needed when job starts.
1 Like
thank you @balonik , so again when storage is filled do we need to clean up this build directory ?, can you please suggest me if there is any configuration to clear this cache or anything like retension period
balonik
January 23, 2024, 12:33pm
4
I don’t think so. It’s kept indefinitely. You need to clean it up by other means.
1 Like