jenkins: try to prevent the build node from running out of disk space

This commit is contained in:
Hans-Christoph Steiner 2017-12-28 22:51:55 +01:00
parent 195a1bbae4
commit 8ed6bb8506
2 changed files with 7 additions and 2 deletions

View File

@ -55,6 +55,11 @@ virsh -c qemu:///system undefine buildserver_default \
--nvram --managed-save --remove-all-storage --snapshots-metadata || true
virsh -c qemu:///system undefine builder_default \
--nvram --managed-save --remove-all-storage --snapshots-metadata || true
virsh -c qemu:///system vol-delete --pool default \
/var/lib/libvirt/images/buildserver_vagrant_box_image_0.img || true
virsh -c qemu:///system vol-delete --pool default \
/var/lib/libvirt/images/jessie64_vagrant_box_image_0.img || true
rm -rf "$WORKSPACE"/../*/.testfiles
cd $WORKSPACE
echo "debian_mirror = 'https://deb.debian.org/debian/'" > $WORKSPACE/makebuildserver.config.py

View File

@ -23,9 +23,9 @@ set -x
# set up Android SDK to use the Debian packages in stretch
export ANDROID_HOME=/usr/lib/android-sdk
rm -rf $WORKSPACE/.testfiles
rm -rf "$WORKSPACE/.testfiles"
cd tests
./run-tests $WORKSPACE
./run-tests $WORKSPACE/fdroiddata/repo
# this is set up and managed by jenkins-build-all
cd $WORKSPACE/fdroiddata