Skip to contentSkip to conversation

CI: Add repo dir to disk usage and ability to purge everything

PATCH New Jon Mason 1 participant 1 message Apr 20, 2021

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 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
---
 .gitlab-ci.yml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
.gitlab-ci.yml +15 -1
index fec2890..d0aa166 100644
@@ -156,7 +156,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:
Signature · 1 line
2.17.1