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
aaec6b27
Commit
aaec6b27
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
67dc0dec
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 @
aaec6b27
...
@@ -31,8 +31,6 @@ def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) {
...
@@ -31,8 +31,6 @@ def sendSocialMediaMessage(pipeChannel, pipeColor, pipeMessage) {
}
}
def
doRedHatBuild
=
false
def
doRedHatBuild
=
false
def
FDD_Band7_B210_Status
def
TDD_Band40_B210_Status
pipeline
{
pipeline
{
agent
{
agent
{
...
@@ -267,19 +265,21 @@ pipeline {
...
@@ -267,19 +265,21 @@ pipeline {
stages
{
stages
{
stage
(
"Test FDD - Band 7 - B210"
)
{
stage
(
"Test FDD - Band 7 - B210"
)
{
steps
{
steps
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
script
{
script
{
try
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
)
)
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
build
job:
'eNB-CI-FDD-Band7-B210'
,
parameters:
[
parameters:
[
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
true
)
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:
[
parameters:
[
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
...
@@ -287,9 +287,9 @@ pipeline {
...
@@ -287,9 +287,9 @@ pipeline {
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
]
}
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
}
}
}
...
@@ -313,19 +313,21 @@ pipeline {
...
@@ -313,19 +313,21 @@ pipeline {
}
}
stage
(
"Test TDD - Band 40 - B210"
)
{
stage
(
"Test TDD - Band 40 - B210"
)
{
steps
{
steps
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
script
{
script
{
try
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
)
)
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
build
job:
'eNB-CI-TDD-Band40-B210'
,
parameters:
[
parameters:
[
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
env
.
gitlabSourceBranch
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
string
(
name:
'eNB_CommitID'
,
value:
String
.
valueOf
(
env
.
gitlabMergeRequestLastCommit
)),
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
true
)
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:
[
parameters:
[
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Repository'
,
value:
String
.
valueOf
(
GIT_URL
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
string
(
name:
'eNB_Branch'
,
value:
String
.
valueOf
(
GIT_BRANCH
)),
...
@@ -333,9 +335,9 @@ pipeline {
...
@@ -333,9 +335,9 @@ pipeline {
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
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