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
851ff429
Commit
851ff429
authored
Apr 03, 2022
by
Luhan Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aa
parent
de45ae4a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
4 deletions
+28
-4
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+8
-1
ci-scripts/createVM.sh
ci-scripts/createVM.sh
+2
-2
ci-scripts/git-clone-in-vm.sh
ci-scripts/git-clone-in-vm.sh
+2
-1
ci-scripts/run-5gc-in-vm.sh
ci-scripts/run-5gc-in-vm.sh
+3
-0
ci-scripts/run5GC.sh
ci-scripts/run5GC.sh
+13
-0
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
851ff429
...
@@ -67,7 +67,6 @@ pipeline {
...
@@ -67,7 +67,6 @@ pipeline {
steps
{
steps
{
script
{
script
{
echo
"Prepare environment in VM"
echo
"Prepare environment in VM"
sh
'pwd'
sh
'./ci-scripts/prepareEnv.sh'
sh
'./ci-scripts/prepareEnv.sh'
/*
/*
if (true){
if (true){
...
@@ -79,6 +78,14 @@ pipeline {
...
@@ -79,6 +78,14 @@ pipeline {
}
}
}
}
}
}
stage
(
"Run docker"
)
{
steps
{
script
{
echo
"Run docker inside VM"
sh
'./ci-scripts/run5GC.sh'
}
}
}
}
}
post
{
post
{
...
...
ci-scripts/createVM.sh
View file @
851ff429
...
@@ -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"
ci-scripts/git-clone-in-vm.sh
View file @
851ff429
...
@@ -8,3 +8,4 @@ fi
...
@@ -8,3 +8,4 @@ fi
git clone
--branch
master http://luhan:wangarafat@git.opensource5g.org/openxg/openxg-5gcs-release.git
git clone
--branch
master http://luhan:wangarafat@git.opensource5g.org/openxg/openxg-5gcs-release.git
echo
"successfully cloned project"
echo
"successfully cloned project"
cd
openxg-5gcs-release
cd
openxg-5gcs-release
sudo
./scripts/install.sh
-I
\ No newline at end of file
ci-scripts/run-5gc-in-vm.sh
0 → 100644
View file @
851ff429
cd
openxg-5gcs-release/docker-compose
sudo
docker-compose
-f
docker-mysql.yml up
-d
sudo
docker-compose
-f
docker-3-network-element.yml up
-d
\ No newline at end of file
ci-scripts/run5GC.sh
0 → 100644
View file @
851ff429
#!/bin/bash
ALL_VMS
=
$(
sudo
uvt-kvm list
)
VM_NAME
=
"vmtest"
CURRENT_PATH
=
`
pwd
`
echo
$ALL_VMS
result
=
$(
echo
$ALL_VMS
|
grep
"
${
VM_NAME
}
"
)
if
[
"
$result
"
==
""
]
;
then
echo
"target VM doesn't exist.."
exit
1
## VM doesn't exist
fi
VM_IP
=
`
sudo
uvt-kvm ip
${
VM_NAME
}
`
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
${
VM_IP
}
<
$CURRENT_PATH
/ci-scripts/run-5gc-in-vm.sh
\ No newline at end of file
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