Commit 98f8ee79 authored by Luhan Wang's avatar Luhan Wang

first overall test

parent 82c20c6a
......@@ -100,8 +100,8 @@ pipeline {
always {
script {
// Stage destroy may not be run if error in previous stage
echo "always done"
//sh "./ci-scripts/removeVM.sh"
echo "Remove VM, clean up"
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
# uvt-kvm destroy $VM_NAME ## if exist testing vm, then remove it
#fi
ALL_VMS=$(sudo uvt-kvm list)
VM_NAME="vmtest"
echo $ALL_VMS
result=$(echo $ALL_VMS | grep "${VM_NAME}")
echo $result
if [ "$result" != "" ];then
uvt-kvm destroy $VM_NAME ## if exist testing vm, then remove it
fi
##创建一个虚拟机用于承载测试;
#uvt-kvm create vmtest release=bionic --memory 8192 --disk 80 --cpu 4 --ssh-public-key-file ~/.ssh/id_rsa.pub
#uvt-kvm wait $VM_NAME
uvt-kvm create vmtest release=bionic --memory 8192 --disk 80 --cpu 4 --ssh-public-key-file ~/.ssh/id_rsa.pub
uvt-kvm wait $VM_NAME
echo "successfully created VM, name is vmtest"
......@@ -9,4 +9,12 @@ git clone --branch master http://luhan:wangarafat@git.opensource5g.org/openxg/op
echo "successfully cloned project"
cd openxg-5gcs-release
sudo ./scripts/install.sh -I
#sudo docker network create docker-openxg --subnet=172.11.200.0/24 -o com.docker.network.bridge.name=docker-openxg
\ No newline at end of file
sudo echo "{ \n \
\"registry-mirrors\": [ \n \
\"https://docker.mirrors.ustc.edu.cn\" \n \
] \n \
} \n \
" > /etc/docker/daemon.json
sudo service docker restart
sudo docker network create docker-openxg --subnet=172.11.200.0/24 -o com.docker.network.bridge.name=docker-openxg
\ No newline at end of file
File mode changed from 100644 to 100755
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