From 54b55deeb876b0fd046e4321a000efbc4f796d48 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Tue, 20 Apr 2021 13:49:48 -0400 Subject: [PATCH] CI: Add repo dir to disk usage and ability to purge everything Add the newly added repo dir to the disk usage calculation and add the ability to remove each of the persistent directories. Change-Id: Ib922ad42c62efdeccf01851ac751742ed67748ae Signed-off-by: Jon Mason --- .gitlab-ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86d4bb47..426476cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -142,7 +142,21 @@ usage: stage: prep when: manual script: - - du -h -s $DL_DIR $SSTATE_DIR + - du -h -s $DL_DIR $SSTATE_DIR $KAS_REPO_REF_DIR + +delete-dl-dir: + extends: .setup + stage: prep + when: manual + script: + - rm -rf $DL_DIR/* + +delete-repo-dir: + extends: .setup + stage: prep + when: manual + script: + - rm -rf $KAS_REPO_REF_DIR/* # Wipe out old sstate prune-sstate: