diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-10-20 12:03:35 +0900 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-10-25 19:40:26 +0000 |
commit | d07b8a13bd466becdc2c1db1c64dac3fb30ff7ae (patch) | |
tree | 1de236502d32ec8844c34e5504453294d1fb2d47 | |
parent | d3e39b69d4a5b5f1c13c76195102531dec9889af (diff) | |
download | infrastructure-d07b8a13bd466becdc2c1db1c64dac3fb30ff7ae.tar.gz |
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
-rwxr-xr-x | extensions/mason/mason-report.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |