fabric8-pipeline-library icon indicating copy to clipboard operation
fabric8-pipeline-library copied to clipboard

have function to clear the `.mvnrepository` directory if its too full

Open jstrachan opened this issue 7 years ago • 0 comments

related to the check function here https://github.com/fabric8io/fabric8-pipeline-library/issues/246

when starting a build, we should check the %age of disk free. If its, say, less than 20% free we should clear the disk (as its really only a cache anyway).

So we need 2 %age numbers; when to start warning the user its too full; and when to clear on startup.

Maybe we warn at <= 30% free or less and clear at <= 20% as a rough starting point?

jstrachan avatar Jun 21 '17 08:06 jstrachan