cerbero ci: Wipe in before_script because gitlab doesn't
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 1 Oct 2020 04:30:49 +0000 (10:00 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 1 Oct 2020 04:30:49 +0000 (10:00 +0530)
Noticed in this job, which failed because we rebuilt on top of an
existing builddir:

https://gitlab.freedesktop.org/nirbheek/cerbero/-/jobs/4772728

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/358>

gitlab/cerbero_setup.sh

index 0ce1276..5b319d3 100644 (file)
@@ -108,6 +108,10 @@ cerbero_before_script() {
     cat localconf.cbc
 
     time ./cerbero-uninstalled --self-update manifest.xml
+
+    # GitLab runner does not always wipe the image after each job, so do that
+    # to ensure we always have a clean builddir
+    time $CERBERO $CERBERO_ARGS wipe --keep-sources --build-tools --force
 }
 
 cerbero_script() {