From d07b8a13bd466becdc2c1db1c64dac3fb30ff7ae Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 20 Oct 2015 12:03:35 +0900 Subject: mason: clean-up all the cache after every run This way we never fill up the disk. We don't care about the cache given that the distbiuld network uploads everything to the artifacts server. The solution is not very clever, but will help us to avoid Mason going red just because of disk space. Also, I don't think Mason deserves more attention. Change-Id: Ifbdaac0e992fe9cc4736010fd26dc9c9e7beb7f4 --- extensions/mason/mason-report.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/mason/mason-report.sh b/extensions/mason/mason-report.sh index 31745b93..04bd0fe2 100755 --- a/extensions/mason/mason-report.sh +++ b/extensions/mason/mason-report.sh @@ -289,3 +289,9 @@ update_report "$START_TIME" \ cp "$REPORT_PATH" "$SERVER_REPORT_PATH" mkdir "$SERVER_PATH/log" mv "$logfile" "$SERVER_PATH/$BUILD_LOG" + +# Cleanup + +mkdir -p /srv/distbuild/remove +mv /srv/distbuild/!(remove) /srv/distbuild/remove +rm -r /srv/distbuild/remove -- cgit v1.2.1