Commit ba209445 authored by Luhan Wang's avatar Luhan Wang

functional ci, still need to verify ping

parent 1d161eb9
......@@ -92,7 +92,7 @@ pipeline {
always {
script {
// Stage destroy may not be run if error in previous stage
sh "rm a.out"
sh "./ci-scripts/removeVM.sh"
}
}
success {
......
#/bin/bash
ALL_VMS=$(sudo uvt-kvm list)
VM_NAME="vmtest"
echo $ALL_VMS
result=$(echo $ALL_VMS | grep "${VM_NAME}")
echo $result
if [ "$result" != "" ];then
echo "Found target VM"
uvt-kvm destroy $VM_NAME ## if exist testing vm, then remove it
fi
echo "VM removed, clean up"
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment