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
canghaiwuhen
OpenXG-RAN
Commits
9a5f8686
Commit
9a5f8686
authored
5 years ago
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: adding the conditional VM test stages
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
27b59812
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
0 deletions
+84
-0
ci-scripts/Jenkinsfile-gitlab-replay
ci-scripts/Jenkinsfile-gitlab-replay
+84
-0
No files found.
ci-scripts/Jenkinsfile-gitlab-replay
View file @
9a5f8686
...
...
@@ -110,6 +110,7 @@ pipeline {
if
(
params
.
replayGitDoMerge
)
{
sh
"./ci-scripts/doGitLabMerge.sh --src-branch ${ReplayGitSrcBranch} --src-commit ${ReplayGitSrcCommit} --target-branch ${ReplayGitTgtBranch} --target-commit latest"
}
sh
"git status"
sh
"zip -r -qq localZip.zip ."
if
(
doFlexranCtrlTest
)
{
sh
"mkdir flexran"
...
...
@@ -217,6 +218,89 @@ pipeline {
}
}
}
stage
(
"Variant Tests"
)
{
parallel
{
stage
(
"VM-based tests"
)
{
stages
{
stage
(
"Test physical simulators"
)
{
when
{
expression
{
ReplayPhySimTests
}
}
steps
{
script
{
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
try
{
gitlabCommitStatus
(
name:
"Test phy-sim"
)
{
sh
"./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant phy-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
}
stage
(
"Build Flexran Controller"
)
{
when
{
expression
{
doFlexranCtrlTest
&&
ReplayBasicSimTests
}
}
steps
{
script
{
timeout
(
time:
20
,
unit:
'MINUTES'
)
{
try
{
sh
"./ci-scripts/oai-ci-vm-tool build --workspace $WORKSPACE --variant flexran-rtc --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
}
stage
(
"Test basic simulator"
)
{
when
{
expression
{
ReplayBasicSimTests
}
}
steps
{
script
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
{
try
{
gitlabCommitStatus
(
name:
"Test basic-sim"
)
{
sh
"./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant basic-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
}
stage
(
"Test L2 simulator"
)
{
when
{
expression
{
ReplayL2nFAPISimTests
}
}
steps
{
script
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
{
try
{
gitlabCommitStatus
(
name:
"Test L2-sim"
)
{
sh
"./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant l2-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
}
stage
(
"Destroy all Virtual Machines"
)
{
steps
{
sh
"./ci-scripts/oai-ci-vm-tool destroy --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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