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
常顺宇
OpenXG-RAN
Commits
d774d09d
Commit
d774d09d
authored
Sep 03, 2018
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: proper gitlab notifications for FDD/TDD test
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
1fe75d1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+22
-20
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
d774d09d
...
...
@@ -31,8 +31,6 @@ def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) {
}
def
doRedHatBuild
=
false
def
FDD_Band7_B210_Status
def
TDD_Band40_B210_Status
pipeline
{
agent
{
...
...
@@ -267,19 +265,21 @@ pipeline {
stages
{
stage
(
"Test FDD - Band 7 - B210"
)
{
steps
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
script
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
)
)
{
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
script
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
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'
,
}
}
else
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
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
)),
...
...
@@ -287,9 +287,9 @@ pipeline {
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
...
...
@@ -313,19 +313,21 @@ pipeline {
}
stage
(
"Test TDD - Band 40 - B210"
)
{
steps
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
script
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
)
)
{
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
script
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
build
job:
'eNB-CI-TDD-Band40-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
{
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
}
}
else
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
build
job:
'eNB-CI-TDD-Band40-B210'
,
parameters:
[
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
...
...
@@ -333,9 +335,9 @@ pipeline {
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
...
...
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