Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
wangjie
OpenXG-RAN
Commits
71982b04
Commit
71982b04
authored
May 21, 2021
by
wf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add logs
parent
6d1bc204
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
8 deletions
+30
-8
ci-scripts/buildOnVM.sh
ci-scripts/buildOnVM.sh
+8
-3
ci-scripts/createVM.sh
ci-scripts/createVM.sh
+9
-1
ci-scripts/oai-ci-vm-tool
ci-scripts/oai-ci-vm-tool
+7
-0
ci-scripts/waitBuildOnVM.sh
ci-scripts/waitBuildOnVM.sh
+2
-1
cmake_targets/tools/build_helper
cmake_targets/tools/build_helper
+4
-3
No files found.
ci-scripts/buildOnVM.sh
View file @
71982b04
...
@@ -53,7 +53,7 @@ function build_on_vm {
...
@@ -53,7 +53,7 @@ function build_on_vm {
fi
fi
echo
"############################################################"
echo
"############################################################"
echo
"OAI CI VM script"
echo
"OAI CI VM script
build_on_vm
"
echo
"############################################################"
echo
"############################################################"
echo
"VM_NAME =
$VM_NAME
"
echo
"VM_NAME =
$VM_NAME
"
...
@@ -67,8 +67,10 @@ function build_on_vm {
...
@@ -67,8 +67,10 @@ function build_on_vm {
echo
"This VM type is no longer supported in the pipeline framework"
echo
"This VM type is no longer supported in the pipeline framework"
return
return
fi
fi
echo
"uvt-kvm list 0000000000000000000"
whoami
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
echo
"uvt-kvm list 0000000000000000000111111111111111111111"
if
[
$IS_VM_ALIVE
-eq
0
]
if
[
$IS_VM_ALIVE
-eq
0
]
then
then
...
@@ -231,6 +233,9 @@ function build_on_vm {
...
@@ -231,6 +233,9 @@ function build_on_vm {
echo
"sudo -E daemon --inherit --unsafe --name=build_daemon --chdir=/home/ubuntu/tmp/cmake_targets -o /home/ubuntu/tmp/cmake_targets/log/install-build.txt ./my-vm-build.sh"
>>
$VM_CMDS
echo
"sudo -E daemon --inherit --unsafe --name=build_daemon --chdir=/home/ubuntu/tmp/cmake_targets -o /home/ubuntu/tmp/cmake_targets/log/install-build.txt ./my-vm-build.sh"
>>
$VM_CMDS
fi
fi
fi
fi
echo
"finish
$VM_CMDS
"
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
<
$VM_CMDS
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
<
$VM_CMDS
rm
-f
$VM_CMDS
echo
"finish ssh
$VM_CMDS
"
# rm -f $VM_CMDS
}
}
ci-scripts/createVM.sh
View file @
71982b04
...
@@ -80,7 +80,15 @@ function release_vm_create_lock {
...
@@ -80,7 +80,15 @@ function release_vm_create_lock {
function
create_vm
{
function
create_vm
{
echo
"############################################################"
echo
"############################################################"
echo
"OAI CI VM script"
echo
"############################################################"
echo
"############################################################"
echo
"############################################################"
echo
"############################################################"
echo
"############################################################"
echo
"############################################################"
echo
"############################################################"
echo
"############################################################"
echo
"OAI CI VM script wfwfwfwfwfwfwfwfwfw"
echo
"############################################################"
echo
"############################################################"
echo
"VM_NAME =
$VM_NAME
"
echo
"VM_NAME =
$VM_NAME
"
echo
"VM_MEMORY =
$VM_MEMORY
MBytes"
echo
"VM_MEMORY =
$VM_MEMORY
MBytes"
...
...
ci-scripts/oai-ci-vm-tool
View file @
71982b04
...
@@ -807,6 +807,7 @@ VM_CMDS=${VM_NAME}_cmds.txt
...
@@ -807,6 +807,7 @@ VM_CMDS=${VM_NAME}_cmds.txt
ARCHIVES_LOC=
${
JENKINS_WKSP
}
/archives/
${
ARCHIVES_LOC
}
ARCHIVES_LOC=
${
JENKINS_WKSP
}
/archives/
${
ARCHIVES_LOC
}
STATUS=0
STATUS=0
echo "
00000000000000000000000000000000000000000
"
if [
${
COMMAND
[
${
COMMANDS_NAME
[
$CREATE_CMD
]
}
]
}
-eq 1 ]
if [
${
COMMAND
[
${
COMMANDS_NAME
[
$CREATE_CMD
]
}
]
}
-eq 1 ]
then
then
if [[ "
$BUILD_OPTIONS
" = "" ]]
if [[ "
$BUILD_OPTIONS
" = "" ]]
...
@@ -814,9 +815,11 @@ then
...
@@ -814,9 +815,11 @@ then
echo "
$VM_NAME
is not a build variant
"
echo "
$VM_NAME
is not a build variant
"
exit 0
exit 0
else
else
echo "
$VM_NAME
create_vm 00000000000000000000000000000000000000000
"
create_vm
create_vm
fi
fi
fi
fi
echo "
11111111111111111111111111111111111111111111111
"
if [
${
COMMAND
[
${
COMMANDS_NAME
[
$BUILD_CMD
]
}
]
}
-eq 1 ]
if [
${
COMMAND
[
${
COMMANDS_NAME
[
$BUILD_CMD
]
}
]
}
-eq 1 ]
then
then
if [[ "
$BUILD_OPTIONS
" = "" ]]
if [[ "
$BUILD_OPTIONS
" = "" ]]
...
@@ -824,6 +827,7 @@ then
...
@@ -824,6 +827,7 @@ then
echo "
$VM_NAME
is not a build variant
"
echo "
$VM_NAME
is not a build variant
"
exit 0
exit 0
else
else
echo "
build_on_vm
11111111111111111111111111111111111111111111111
"
build_on_vm
build_on_vm
fi
fi
if [
$DAEMON
-eq 0 ] && [
$STATUS
-eq 0 ]
if [
$DAEMON
-eq 0 ] && [
$STATUS
-eq 0 ]
...
@@ -838,10 +842,12 @@ then
...
@@ -838,10 +842,12 @@ then
echo "
$VM_NAME
is not a build variant
"
echo "
$VM_NAME
is not a build variant
"
exit 0
exit 0
else
else
echo "
wait_on_vm_build
2222222222222222222222222222222222222222222
"
wait_on_vm_build
wait_on_vm_build
fi
fi
if [
$STATUS
-eq 0 ]
if [
$STATUS
-eq 0 ]
then
then
echo "
check_on_vm_build
3333333333333333333333333333333333333333333
"
check_on_vm_build
check_on_vm_build
fi
fi
fi
fi
...
@@ -859,6 +865,7 @@ then
...
@@ -859,6 +865,7 @@ then
fi
fi
ARCHIVES_LOC=
${
ARCHIVES_LOC
}
/test
ARCHIVES_LOC=
${
ARCHIVES_LOC
}
/test
echo "
run_test_on_vm
44444444444444444444444444444444444444444444444
"
run_test_on_vm
run_test_on_vm
fi
fi
if [
${
COMMAND
[
${
COMMANDS_NAME
[
$DESTROY_CMD
]
}
]
}
-eq 1 ]
if [
${
COMMAND
[
${
COMMANDS_NAME
[
$DESTROY_CMD
]
}
]
}
-eq 1 ]
...
...
ci-scripts/waitBuildOnVM.sh
View file @
71982b04
...
@@ -52,8 +52,9 @@ function wait_on_vm_build {
...
@@ -52,8 +52,9 @@ function wait_on_vm_build {
echo
"This VM type is no longer supported in the pipeline framework"
echo
"This VM type is no longer supported in the pipeline framework"
return
return
fi
fi
echo
"uvt-kvm list 0000000000000000000000"
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
echo
"uvt-kvm list 1111111111111111111111"
if
[
$IS_VM_ALIVE
-eq
0
]
if
[
$IS_VM_ALIVE
-eq
0
]
then
then
...
...
cmake_targets/tools/build_helper
View file @
71982b04
...
@@ -822,8 +822,8 @@ check_install_oai_software() {
...
@@ -822,8 +822,8 @@ check_install_oai_software() {
fi
fi
install_asn1c_from_source $1
install_asn1c_from_source $1
$SUDO rm -fr /opt/ssh
#
$SUDO rm -fr /opt/ssh
$SUDO git clone https://gist.github.com/2190472.git /opt/ssh
#
$SUDO git clone https://gist.github.com/2190472.git /opt/ssh
}
}
install_asn1c_from_source(){
install_asn1c_from_source(){
...
@@ -832,7 +832,8 @@ install_asn1c_from_source(){
...
@@ -832,7 +832,8 @@ install_asn1c_from_source(){
(
(
$SUDO rm -rf /tmp/asn1c
$SUDO rm -rf /tmp/asn1c
# GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
# GIT_SSL_NO_VERIFY=true git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
#git clone https://gitlab.eurecom.fr/oai/asn1c.git /tmp/asn1c
git clone http://git.opensource5g.org/openxg/asn1c.git /tmp/asn1c
cd /tmp/asn1c
cd /tmp/asn1c
# better to use a given commit than a branch in case the branch
# better to use a given commit than a branch in case the branch
# is updated and requires modifications in the source of OAI
# is updated and requires modifications in the source of OAI
...
...
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