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
lizhongxiao
OpenXG-RAN
Commits
494f26a7
Commit
494f26a7
authored
Apr 19, 2019
by
Boris Djalal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code formatting.
Signed-off-by:
Boris Djalal
<
boris.djalal@eurecom.fr
>
parent
b923c712
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
276 additions
and
274 deletions
+276
-274
ci-scripts/test-boris-Jenkinsfile
ci-scripts/test-boris-Jenkinsfile
+276
-274
No files found.
ci-scripts/test-boris-Jenkinsfile
View file @
494f26a7
...
@@ -24,11 +24,11 @@
...
@@ -24,11 +24,11 @@
// Abstraction function to send social media messages:
// Abstraction function to send social media messages:
// like on Slack or Mattermost
// like on Slack or Mattermost
def
sendSocialMediaMessage
(
pipeChannel
,
pipeColor
,
pipeMessage
)
{
def
sendSocialMediaMessage
(
pipeChannel
,
pipeColor
,
pipeMessage
)
{
if
(
params
.
pipelineUsesSlack
!=
null
)
{
if
(
params
.
pipelineUsesSlack
!=
null
)
{
if
(
params
.
pipelineUsesSlack
)
{
if
(
params
.
pipelineUsesSlack
)
{
slackSend
channel:
pipeChannel
,
color:
pipeColor
,
message:
pipeMessage
slackSend
channel:
pipeChannel
,
color:
pipeColor
,
message:
pipeMessage
}
}
}
}
}
}
...
@@ -64,17 +64,18 @@ def EPC_Password = "none"
...
@@ -64,17 +64,18 @@ def EPC_Password = "none"
pipeline
{
pipeline
{
agent
{
agent
{
label
pythonExecutor
label
pythonExecutor
}
}
options
{
options
{
disableConcurrentBuilds
()
disableConcurrentBuilds
()
timestamps
()
timestamps
()
gitLabConnection
(
'OAI GitLab'
)
gitLabConnection
(
'OAI GitLab'
)
ansiColor
(
'xterm'
)
ansiColor
(
'xterm'
)
}
}
stages
{
stage
(
'Retrieve latest from branch'
)
{
stages
{
stage
(
'Retrieve latest from branch'
)
{
steps
{
steps
{
script
{
script
{
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
'*/gNB-nrUE-USRP'
]],
doGenerateSubmoduleConfigurations:
false
,
extensions:
[],
submoduleCfg:
[],
userRemoteConfigs:
[[
url:
'https://gitlab.eurecom.fr/oai/openairinterface5g.git'
]]])
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
'*/gNB-nrUE-USRP'
]],
doGenerateSubmoduleConfigurations:
false
,
extensions:
[],
submoduleCfg:
[],
userRemoteConfigs:
[[
url:
'https://gitlab.eurecom.fr/oai/openairinterface5g.git'
]]])
...
@@ -82,8 +83,8 @@ stage ('Retrieve latest from branch') {
...
@@ -82,8 +83,8 @@ stage ('Retrieve latest from branch') {
sh
"git log -n1"
sh
"git log -n1"
}
}
}
}
}
}
stage
(
"P
rint latest commit info"
)
{
stage
(
"p
rint latest commit info"
)
{
steps
{
steps
{
script
{
script
{
echo
"Building on: "
echo
"Building on: "
...
@@ -94,8 +95,8 @@ stage ("Print latest commit info") {
...
@@ -94,8 +95,8 @@ stage ("Print latest commit info") {
//eNB_Repository = ${GIT_URL}
//eNB_Repository = ${GIT_URL}
}
}
}
}
}
}
stage
(
"Verify Parameters"
)
{
stage
(
"Verify Parameters"
)
{
steps
{
steps
{
script
{
script
{
JOB_TIMESTAMP
=
sh
returnStdout:
true
,
script:
'date --utc --rfc-3339=seconds | sed -e "s#+00:00##"'
JOB_TIMESTAMP
=
sh
returnStdout:
true
,
script:
'date --utc --rfc-3339=seconds | sed -e "s#+00:00##"'
...
@@ -195,9 +196,9 @@ stage ("Verify Parameters") {
...
@@ -195,9 +196,9 @@ stage ("Verify Parameters") {
//echo "params.ADB_IPAddress = ${params.ADB_IPAddress}"
//echo "params.ADB_IPAddress = ${params.ADB_IPAddress}"
}
}
}
}
}
}
stage
(
"Build and Test"
)
{
stage
(
"Build and Test"
)
{
steps
{
steps
{
script
{
script
{
dir
(
'ci-scripts'
)
{
dir
(
'ci-scripts'
)
{
...
@@ -240,9 +241,9 @@ stage ("Build and Test") {
...
@@ -240,9 +241,9 @@ stage ("Build and Test") {
}
}
}
}
}
}
}
}
stage
(
"Terminate"
)
{
stage
(
"Terminate"
)
{
parallel
{
parallel
{
stage
(
'Terminate NR UE'
)
{
stage
(
'Terminate NR UE'
)
{
steps
{
steps
{
...
@@ -269,9 +270,9 @@ stage ("Terminate") {
...
@@ -269,9 +270,9 @@ stage ("Terminate") {
}
}
}
}
}
}
}
}
stage
(
'Log Collection'
)
{
stage
(
'Log Collection'
)
{
parallel
{
parallel
{
stage
(
'Log Collection (gNB and NR UE - Build)'
)
{
stage
(
'Log Collection (gNB and NR UE - Build)'
)
{
steps
{
steps
{
...
@@ -338,9 +339,10 @@ stage('Log Collection') {
...
@@ -338,9 +339,10 @@ stage('Log Collection') {
}
}
}
}
}
}
}
}
}
}
post
{
post
{
always
{
always
{
script
{
script
{
// Stage destroy may not be run if error in previous stage
// Stage destroy may not be run if error in previous stage
...
@@ -350,7 +352,7 @@ post {
...
@@ -350,7 +352,7 @@ post {
echo
"buildStageStatus = ${buildStageStatus}"
echo
"buildStageStatus = ${buildStageStatus}"
emailext
attachmentsPattern:
'*results*.html'
,
emailext
attachmentsPattern:
'*results*.html'
,
body:
'''Hi,
body:
'''Hi,
Here are attached HTML report files for $PROJECT_NAME - Build # $BUILD_NUMBER - $
buildStageStatus
!
Here are attached HTML report files for $PROJECT_NAME - Build # $BUILD_NUMBER - $
{buildStageStatus}
!
Regards,
Regards,
OAI CI Team'''
,
OAI CI Team'''
,
...
...
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