Commit c469b28a authored by Luhan Wang's avatar Luhan Wang

a

parent a0ea9d8b
...@@ -63,21 +63,18 @@ pipeline { ...@@ -63,21 +63,18 @@ pipeline {
} }
} }
} }
stage ("Verify output Stage") { stage ("Prepare environment") {
steps { steps {
script { script {
echo "Hello World, Run a.out" echo "Prepare environment in VM"
sh './a.out' sh './ci-scripts/prepareEnv.sh'
result = sh(script: "./a.out", returnStdout: true) /*
echo result.trim()
echo "aaaaaaaaaaa"
if (true){ if (true){
echo "in if yuju" echo "in if yuju"
currentBuild.result = 'FAILED' currentBuild.result = 'FAILED'
error('Aborting the build.') error('Aborting the build.')
return return
} }*/
} }
} }
} }
......
...@@ -9,6 +9,6 @@ if [ "$result" != "" ];then ...@@ -9,6 +9,6 @@ if [ "$result" != "" ];then
uvt-kvm destroy $VM_NAME ## if exist testing vm, then remove it uvt-kvm destroy $VM_NAME ## if exist testing vm, then remove it
fi fi
##创建一个虚拟机用于承载测试; ##创建一个虚拟机用于承载测试;
#uvt-kvm create vmtest release=bionic --memory 8192 --disk 80 --cpu 4 --ssh-public-key-file ~/.ssh/id_rsa.pub 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 wait $VM_NAME
echo "successfully created VM, name is vmtest" echo "successfully created VM, name is vmtest"
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