summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jjb/xci/xci-daily-jobs.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/jjb/xci/xci-daily-jobs.yaml b/jjb/xci/xci-daily-jobs.yaml
index 47bd83c8a..3627d1806 100644
--- a/jjb/xci/xci-daily-jobs.yaml
+++ b/jjb/xci/xci-daily-jobs.yaml
@@ -300,6 +300,15 @@
set -o errexit
set -o pipefail
+ echo "Cleaning the leftovers from the earlier run"
+ echo "---------------------------------------------------------------------------------"
+ for vm in $(sudo virsh list --all --name | grep -v xci_vm); do
+ echo "Removing $vm"
+ sudo virsh destroy $vm > /dev/null 2>&1 || true
+ sudo virsh undefine $vm > /dev/null 2>&1 || true
+ done
+ echo "---------------------------------------------------------------------------------"
+
cd $WORKSPACE/xci && ./xci-deploy.sh
echo "Prepare OPNFV VM for Functest"