mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
cerbero ci: Make before_script wiping more thorough
Will avoid packaging errors due to the old package file still being around from a previous job, such as in: https://gitlab.freedesktop.org/nirbheek/cerbero/-/jobs/4804147 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/361>
This commit is contained in:
parent
a26129c78c
commit
42696e1654
1 changed files with 5 additions and 3 deletions
|
@ -84,7 +84,7 @@ cerbero_package_and_check() {
|
|||
|
||||
cerbero_before_script() {
|
||||
pwd
|
||||
ls -lh
|
||||
ls -lha
|
||||
|
||||
# Copy cerbero git repo stored on the image
|
||||
cp -a "${CERBERO_HOST_DIR}/.git" .
|
||||
|
@ -110,8 +110,10 @@ cerbero_before_script() {
|
|||
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
|
||||
# to ensure we don't have any leftover data from a previous job such as
|
||||
# a dirty builddir, or tarballs/pkg files, leftover files from an old
|
||||
# cerbero commit, etc. Skip the things we actually need to keep.
|
||||
time git clean -xdff -e cerbero_setup.sh -e manifest.xml -e localconf.cbc -e "${CERBERO_SOURCES}"
|
||||
}
|
||||
|
||||
cerbero_script() {
|
||||
|
|
Loading…
Reference in a new issue