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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
a5f0b0a4
Commit
a5f0b0a4
authored
Nov 16, 2021
by
Fang-WANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retry when vm not found
parent
372c0191
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
5 deletions
+54
-5
ci-scripts/buildOnVM.sh
ci-scripts/buildOnVM.sh
+1
-1
ci-scripts/destroyAllRunningVM.sh
ci-scripts/destroyAllRunningVM.sh
+26
-1
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+1
-1
ci-scripts/waitBuildOnVM.sh
ci-scripts/waitBuildOnVM.sh
+26
-2
No files found.
ci-scripts/buildOnVM.sh
View file @
a5f0b0a4
...
@@ -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
"
...
...
ci-scripts/destroyAllRunningVM.sh
View file @
a5f0b0a4
...
@@ -35,12 +35,37 @@ function destroy_usage {
...
@@ -35,12 +35,37 @@ function destroy_usage {
function
destroy_vm
{
function
destroy_vm
{
echo
"############################################################"
echo
"############################################################"
echo
"OAI CI VM script"
echo
"OAI CI VM script
destroy_vm
"
echo
"############################################################"
echo
"############################################################"
echo
"VM_TEMPLATE =
$VM_TEMPLATE
"
echo
"VM_TEMPLATE =
$VM_TEMPLATE
"
LIST_CI_VM
=
`
uvt-kvm list |
grep
$VM_TEMPLATE
`
LIST_CI_VM
=
`
uvt-kvm list |
grep
$VM_TEMPLATE
`
if
[
$LIST_CI_VM
-eq
0
]
then
echo
"############################################################"
echo
"uvt-kvm list | grep
$VM_TEMPLATE
, retry 1 "
echo
"############################################################"
LIST_CI_VM
=
`
uvt-kvm list |
grep
$VM_TEMPLATE
`
fi
if
[
$LIST_CI_VM
-eq
0
]
then
echo
"############################################################"
echo
"uvt-kvm list | grep
$VM_TEMPLATE
, retry 2 "
echo
"############################################################"
LIST_CI_VM
=
`
uvt-kvm list |
grep
$VM_TEMPLATE
`
fi
if
[
$LIST_CI_VM
-eq
0
]
then
echo
"############################################################"
echo
"uvt-kvm list | grep
$VM_TEMPLATE
, retry 3 "
echo
"############################################################"
LIST_CI_VM
=
`
uvt-kvm list |
grep
$VM_TEMPLATE
`
fi
for
CI_VM
in
$LIST_CI_VM
for
CI_VM
in
$LIST_CI_VM
do
do
VM_IP_ADDR
=
`
uvt-kvm ip
$CI_VM
`
VM_IP_ADDR
=
`
uvt-kvm ip
$CI_VM
`
...
...
ci-scripts/runTestOnVM.sh
View file @
a5f0b0a4
...
@@ -1470,7 +1470,7 @@ function start_rf_sim_nr_ue {
...
@@ -1470,7 +1470,7 @@ function start_rf_sim_nr_ue {
function
run_test_on_vm
{
function
run_test_on_vm
{
echo
"############################################################"
echo
"############################################################"
echo
"OAI CI VM script"
echo
"OAI CI VM script
run_test_on_vm
"
echo
"############################################################"
echo
"############################################################"
if
[[
((
"
$RUN_OPTIONS
"
==
"complex"
)
&&
(
$VM_NAME
=
~ .
*
-l2-sim
.
*
))
]]
||
[[
((
"
$RUN_OPTIONS
"
==
"complex"
)
&&
(
$VM_NAME
=
~ .
*
-rf-sim
.
*
))
]]
if
[[
((
"
$RUN_OPTIONS
"
==
"complex"
)
&&
(
$VM_NAME
=
~ .
*
-l2-sim
.
*
))
]]
||
[[
((
"
$RUN_OPTIONS
"
==
"complex"
)
&&
(
$VM_NAME
=
~ .
*
-rf-sim
.
*
))
]]
then
then
...
...
ci-scripts/waitBuildOnVM.sh
View file @
a5f0b0a4
...
@@ -38,7 +38,7 @@ function wait_usage {
...
@@ -38,7 +38,7 @@ function wait_usage {
function
wait_on_vm_build
{
function
wait_on_vm_build
{
echo
"############################################################"
echo
"############################################################"
echo
"OAI CI VM script"
echo
"OAI CI VM script
wait_on_vm_build
"
echo
"############################################################"
echo
"############################################################"
echo
"VM_NAME =
$VM_NAME
"
echo
"VM_NAME =
$VM_NAME
"
...
@@ -55,6 +55,30 @@ function wait_on_vm_build {
...
@@ -55,6 +55,30 @@ function wait_on_vm_build {
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
if
[
$IS_VM_ALIVE
-eq
0
]
then
echo
"############################################################"
echo
"uvt-kvm list | grep -c
$VM_NAME
error,retry 1 "
echo
"############################################################"
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
fi
if
[
$IS_VM_ALIVE
-eq
0
]
then
echo
"############################################################"
echo
"uvt-kvm list | grep -c
$VM_NAME
error,retry 2 "
echo
"############################################################"
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
fi
if
[
$IS_VM_ALIVE
-eq
0
]
then
echo
"############################################################"
echo
"uvt-kvm list | grep -c
$VM_NAME
error,retry 3 "
echo
"############################################################"
IS_VM_ALIVE
=
`
uvt-kvm list |
grep
-c
$VM_NAME
`
fi
if
[
$IS_VM_ALIVE
-eq
0
]
if
[
$IS_VM_ALIVE
-eq
0
]
then
then
echo
"############################################################"
echo
"############################################################"
...
@@ -100,7 +124,7 @@ function check_on_vm_build {
...
@@ -100,7 +124,7 @@ function check_on_vm_build {
fi
fi
echo
"############################################################"
echo
"############################################################"
echo
"Creating a tmp folder to store results and artifacts"
echo
"
check_on_vm_build
Creating a tmp folder to store results and artifacts"
echo
"############################################################"
echo
"############################################################"
if
[
!
-d
$JENKINS_WKSP
/archives
]
if
[
!
-d
$JENKINS_WKSP
/archives
]
then
then
...
...
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