mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
ci_template: try harder to cleanup after build jobs
Let's try extra hard to clean after ourselves, cause gitlab-runner occasionally decides to reuse existing, polluted, volumes... so much for clean build environments... Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/288>
This commit is contained in:
parent
edac99f441
commit
6576f2f7b7
1 changed files with 12 additions and 1 deletions
|
@ -103,6 +103,12 @@ gst indent:
|
|||
|
||||
.gst_build_template: &gst_build
|
||||
- echo $MESON_ARGS
|
||||
# Sometimes, gitlab-runner want to reuse
|
||||
# existing docker volumes without cleaning them up...
|
||||
# Make sure the docker volume is clean
|
||||
- rm -rf gst-build || true
|
||||
- rm -rf meson-logs || true
|
||||
- rm -rf validate-logs || true
|
||||
|
||||
- curl -L -o clone_manifest_ref.py "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py"
|
||||
- python3 clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination gst-build
|
||||
|
@ -235,11 +241,16 @@ build clang fedora x86_64:
|
|||
-l "${CI_PROJECT_DIR}/validate-logs/"
|
||||
--xunit-file "${CI_PROJECT_DIR}/validate-logs/xunit.xml"
|
||||
${EXTRA_VALIDATE_ARGS}
|
||||
after_script:
|
||||
- mv gst-build/build/meson-logs/ meson-logs
|
||||
# Cleanup everything else to reduce the size
|
||||
# of the docker volume we leave behind
|
||||
- rm -rf gst-build
|
||||
artifacts:
|
||||
expire_in: '14 days'
|
||||
when: always
|
||||
paths:
|
||||
- 'gst-build/build/meson-logs/'
|
||||
- 'meson-logs/'
|
||||
- 'validate-logs'
|
||||
- 'manifest.xml'
|
||||
reports:
|
||||
|
|
Loading…
Reference in a new issue