For my maven enterprise repository, I use Sonatype Nexus, deployed as a Tomcat6 webapp.
I’ve configured default snapshots cleanup task. Unfortunatly, each week (or each pair of week, don’t know exactly), that machine reaches 100% disk occupation, and I have to go in the /usr/share/tocmat6/sonatype-work/nexus/storage/snapshots/.nexus/trash folder to perform a rm -rf.
This is incredibly stupid ! And I’m quite sure it’s my own stupid. So, what can I do to have the trash empty task really clean up that folder ?
Turns out default configuration of “Empty trash” is to delete items older than
180days ! This is clearly not suitable for a continuous integration server ! I changed that value to5days.