Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openxg-5gcs-release
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
openxg-5gcs-release
Commits
98f8ee79
Commit
98f8ee79
authored
Apr 03, 2022
by
Luhan Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first overall test
parent
82c20c6a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
13 deletions
+21
-13
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+2
-2
ci-scripts/createVM.sh
ci-scripts/createVM.sh
+10
-10
ci-scripts/git-clone-in-vm.sh
ci-scripts/git-clone-in-vm.sh
+9
-1
ci-scripts/verify-in-vm.sh
ci-scripts/verify-in-vm.sh
+0
-0
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
98f8ee79
...
...
@@ -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
{
...
...
ci-scripts/createVM.sh
View file @
98f8ee79
#/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"
ci-scripts/git-clone-in-vm.sh
View file @
98f8ee79
...
...
@@ -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
ci-scripts/verify-in-vm.sh
100644 → 100755
View file @
98f8ee79
File mode changed from 100644 to 100755
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment