Skip to content
Snippets Groups Projects

Clean up the shared-state-cache

Open Sébastien Heurtematte requested to merge ci/clean_job_sstate_cache into kirkstone
2 files
+ 18
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -464,3 +464,20 @@
artifacts:
paths:
- $ARTIFACTS_DIR
clean_sstate:
extends: .bitbake-workspace
stage: clean
variables:
CI_ONIRO_BUILD_FLAVOUR: "bypass precondition"
MACHINE: "bypass precondition"
script:
- SCRATCH_DIR="$(cat "$CI_PROJECT_DIR"/.scratch-dir-name)"
- cd "$SCRATCH_DIR"
- df -h ${CI_ONIRO_RUNNER_PERSISTENT_STORAGE}
- time ${SCRATCH_DIR}/oe-core/scripts/sstate-cache-management.sh --remove-duplicated -d --cache-dir=${CI_ONIRO_BB_LOCAL_CONF_SSTATE_DIR} -y
- df -h ${CI_ONIRO_RUNNER_PERSISTENT_STORAGE}
rules:
- if: '$CI_ONIRO_CLEAN_SSTATE'
when: always
allow_failure: true
\ No newline at end of file
Loading