Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bin He
openairinterface5G
Commits
d353b2bd
Commit
d353b2bd
authored
6 years ago
by
Florian Kaltenberger
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop-nr' of
https://gitlab.eurecom.fr/oai/openairinterface5g
into develop-nr
parents
26251a1b
4e6ca116
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-scripts/Jenkinsfile-gitlab
+3
-95
3 additions, 95 deletions
ci-scripts/Jenkinsfile-gitlab
with
3 additions
and
95 deletions
ci-scripts/Jenkinsfile-gitlab
+
3
−
95
View file @
d353b2bd
#
!
/
B
in/
groovy
#
!
/
b
in/
groovy
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
...
...
@@ -41,7 +41,7 @@ pipeline {
disableConcurrentBuilds
()
timestamps
()
gitLabConnection
(
'OAI GitLab'
)
gitlabBuilds
(
builds:
[
"Build eNb-USRP"
,
"Build
basic-sim"
,
"Build phy-sim"
,
"Build eNb-ethernet"
,
"Build UE-ethernet"
,
"Build gNb
-usrp"
,
"Build
nr-UE-usrp
"
,
"Analysis with cppcheck"
,
"Test phy-sim"
,
"Test-FDD-Band7"
])
gitlabBuilds
(
builds:
[
"Build eNb-USRP"
,
"Build
gNb-usrp"
,
"Build nr-UE
-usrp"
,
"Build
phy-sim
"
,
"Analysis with cppcheck"
])
ansiColor
(
'xterm'
)
}
...
...
@@ -125,28 +125,12 @@ pipeline {
}
}
stage
(
"Start VM -- basic-sim"
)
{
steps
{
sh
"./ci-scripts/createVM.sh --variant basic-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
stage
(
"Start VM -- phy-sim"
)
{
steps
{
sh
"./ci-scripts/createVM.sh --variant phy-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
stage
(
"Start VM -- enb-ethernet"
)
{
steps
{
sh
"./ci-scripts/createVM.sh --variant enb-ethernet --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
}
}
stage
(
"Start VM -- ue-ethernet"
)
{
steps
{
sh
"./ci-scripts/createVM.sh --variant ue-ethernet --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
stage
(
"Start VM -- gnb-usrp"
)
{
steps
{
sh
"./ci-scripts/createVM.sh --variant gnb-usrp --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
...
...
@@ -175,13 +159,6 @@ pipeline {
}
}
}
stage
(
"Build basic simulator"
)
{
steps
{
gitlabCommitStatus
(
name:
"Build basic-sim"
)
{
sh
"./ci-scripts/buildOnVM.sh --workspace $WORKSPACE --variant basic-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
}
}
}
stage
(
"Build 5G gNB-USRP"
)
{
steps
{
gitlabCommitStatus
(
name:
"Build gNb-usrp"
)
{
...
...
@@ -228,7 +205,7 @@ pipeline {
always
{
script
{
dir
(
'archives'
)
{
sh
"zip -r -qq vm_build_logs.zip
basic_sim
enb_usrp phy_sim cppcheck
enb_eth ue_eth
gnb_usrp nrue_usrp red_hat"
sh
"zip -r -qq vm_build_logs.zip enb_usrp phy_sim cppcheck gnb_usrp nrue_usrp red_hat"
}
if
(
fileExists
(
'archives/vm_build_logs.zip'
))
{
archiveArtifacts
artifacts:
'archives/vm_build_logs.zip'
...
...
@@ -255,75 +232,6 @@ pipeline {
}
}
stage
(
"Variant Tests"
)
{
parallel
{
stage
(
"Test physical simulators"
)
{
steps
{
gitlabCommitStatus
(
name:
"Test phy-sim"
)
{
sh
"./ci-scripts/runTestOnVM.sh --workspace $WORKSPACE --variant phy-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
}
}
}
stage
(
"Test basic simulator"
)
{
steps
{
//gitlabCommitStatus(name: "Test basic-sim") {
sh
"./ci-scripts/runTestOnVM.sh --workspace $WORKSPACE --variant basic-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
//}
}
}
stage
(
"Test FDD - Band 7 - B210"
)
{
steps
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
script
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
parameters:
[
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
true
)
]
}
else
{
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
parameters:
[
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
GIT_COMMIT
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
}
}
}
}
post
{
always
{
script
{
copyArtifacts
(
projectName:
'eNB-CI-FDD-Band7-B210'
,
filter:
'test_results*.html'
,
selector:
specific
(
"${FDD_Band7_B210_Status.number}"
))
if
(
fileExists
(
'test_results-eNB-CI-FDD-Band7-B210.html'
))
{
archiveArtifacts
artifacts:
'test_results-eNB-CI-FDD-Band7-B210.html'
}
}
}
}
}
}
post
{
always
{
script
{
dir
(
'archives'
)
{
sh
"if [ -d */test ]; then zip -r -qq vm_tests_logs.zip */test ; fi"
}
if
(
fileExists
(
'archives/vm_tests_logs.zip'
))
{
archiveArtifacts
artifacts:
'archives/vm_tests_logs.zip'
archiveArtifacts
artifacts:
'archives/*/test/results_autotests*.xml'
archiveArtifacts
artifacts:
'archives/*/test/*.xsl'
}
}
}
}
}
stage
(
"Destroy all Virtual Machines"
)
{
steps
{
sh
"./ci-scripts/destroyAllRunningVM.sh --job-name ${JOB_NAME} --build-id ${BUILD_ID}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment