Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
d888df46
Commit
d888df46
authored
Oct 23, 2020
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: lock mechanism around the VM usage
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
562fd82f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+36
-0
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
d888df46
...
...
@@ -35,6 +35,9 @@ def doFlexranCtrlTest = false
// Location of the executor node
def
nodeExecutor
=
params
.
nodeExecutor
// VM Lockable resources
def
vmResource
=
params
.
vmLockableResource
pipeline
{
agent
{
label
nodeExecutor
...
...
@@ -159,67 +162,83 @@ pipeline {
stage
(
"Start VM -- basic-sim"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant basic-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Start VM -- gnb-usrp"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant gnb-usrp --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Start VM -- nr-ue-usrp"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant nr-ue-usrp --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Start VM -- enb-usrp"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant enb-usrp --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Start VM -- phy-sim"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
5
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant phy-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Start VM -- enb-ethernet"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
7
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant enb-ethernet --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Start VM -- ue-ethernet"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
7
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant ue-ethernet --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Start VM -- cppcheck"
)
{
steps
{
lock
(
vmResource
)
{
timeout
(
time:
7
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant cppcheck --job-name ${JOB_NAME} --build-id ${BUILD_ID} --daemon"
}
}
}
}
stage
(
"Variant Builds"
)
{
parallel
{
...
...
@@ -288,6 +307,8 @@ pipeline {
}
stage
(
"Build UE-ethernet"
)
{
steps
{
// This is typically the last one to finish.
lock
(
vmResource
)
{
gitlabCommitStatus
(
name:
"Build UE-ethernet"
)
{
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
sh
"./ci-scripts/oai-ci-vm-tool wait --workspace $WORKSPACE --variant ue-ethernet --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
...
...
@@ -296,6 +317,7 @@ pipeline {
}
}
}
}
post
{
failure
{
script
{
...
...
@@ -354,6 +376,7 @@ pipeline {
stages
{
stage
(
"Test physical simulators"
)
{
steps
{
lock
(
vmResource
)
{
script
{
timeout
(
time:
90
,
unit:
'MINUTES'
)
{
try
{
...
...
@@ -367,11 +390,13 @@ pipeline {
}
}
}
}
stage
(
"Build Flexran Controller"
)
{
when
{
expression
{
doFlexranCtrlTest
}
}
steps
{
lock
(
vmResource
)
{
script
{
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
try
{
...
...
@@ -383,8 +408,10 @@ pipeline {
}
}
}
}
stage
(
"Test basic simulator"
)
{
steps
{
lock
(
vmResource
)
{
script
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
{
try
{
...
...
@@ -398,8 +425,10 @@ pipeline {
}
}
}
}
stage
(
"Test L1 simulator"
)
{
steps
{
lock
(
vmResource
)
{
script
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
{
try
{
...
...
@@ -413,8 +442,10 @@ pipeline {
}
}
}
}
stage
(
"Test RF simulator"
)
{
steps
{
lock
(
vmResource
)
{
script
{
timeout
(
time:
40
,
unit:
'MINUTES'
)
{
try
{
...
...
@@ -428,8 +459,10 @@ pipeline {
}
}
}
}
stage
(
"Test L2 simulator"
)
{
steps
{
lock
(
vmResource
)
{
script
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
{
try
{
...
...
@@ -443,13 +476,16 @@ pipeline {
}
}
}
}
stage
(
"Destroy all Virtual Machines"
)
{
steps
{
lock
(
vmResource
)
{
sh
"./ci-scripts/oai-ci-vm-tool destroy --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
}
}
}
stage
(
"Test MONOLITHIC - FDD - Band 7 - B210"
)
{
steps
{
script
{
...
...
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