Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.
Problem to solve
I observe several projects on our group, using over a hundred Gb of storage for job artefacts, despite setting (in the project CI settings) ‘keep recent artefacts’ to false.
Steps to reproduce
- our builds do produce moderately large artefacts (200MB) which we want to use in downstream jobs in the same pipeline, but which don’t need to be kept after a pipeline ends.
- I’ve disabled keeping recent artefacts in the CI settings page
Configuration
linux-build:
image: ${CI_REGISTRY}/flightgear/flightgear-ci-docker/flightgear:latest
stage: build
script:
- cmake --build $BUILD_DIR
- cmake --build $BUILD_DIR --target fgfs_test_suite
- cmake --build $BUILD_DIR --target install
artifacts:
paths:
- dist
Excerpt from our CI YAML, showing a build job: we specify artefacts to be created, but no custom expiry. Since the CI setting is not to keep artefacts, I’m surprised that many artefacts are kept.
Eg see: Artifacts · FlightGear Flight Simulator / flightgear · GitLab
Versions
-
GitLab.comSaaS