From 59974ccd5f1368b2a1c621ba3efd6d2c44c126dd Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Tue, 8 Jun 2021 11:26:55 -0400 Subject: [PATCH] ci: clean regularly to reduce size The Gitlab CI executors do not clean-up after each run, which will result in a ballooning size over time. Remove all files in the work tree, removing the problem. SSTATE should prevent this from causing any performance by not having the files there. Change-Id: I57df3cf470c519286fe194739a0a7722794f3b25 Signed-off-by: Jon Mason --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e41a78d..4e7cef4e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,7 @@ stages: - echo KAS_WORK_DIR = $KAS_WORK_DIR - echo SSTATE_DIR = $SSTATE_DIR - echo DL_DIR = $DL_DIR + - rm -rf $KAS_WORK_DIR - mkdir --verbose --parents $KAS_WORK_DIR $KAS_REPO_REF_DIR $SSTATE_DIR $DL_DIR # Generalised fragment to do a Kas build