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
wangjie
OpenXG-RAN
Commits
243c1c05
Commit
243c1c05
authored
Jan 04, 2021
by
FANG WANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile-gitlab
parent
050f3daa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+3
-3
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
243c1c05
...
@@ -115,10 +115,10 @@ pipeline {
...
@@ -115,10 +115,10 @@ pipeline {
sh
"./ci-scripts/checkCodingFormattingRules.sh --src-branch ${env.gitlabSourceBranch} --target-branch ${env.gitlabTargetBranch}"
sh
"./ci-scripts/checkCodingFormattingRules.sh --src-branch ${env.gitlabSourceBranch} --target-branch ${env.gitlabTargetBranch}"
def
res
=
readFile
(
'./oai_rules_result.txt'
).
trim
();
def
res
=
readFile
(
'./oai_rules_result.txt'
).
trim
();
if
(
"0"
.
equals
(
res
))
{
if
(
"0"
.
equals
(
res
))
{
def
message
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): All Changed files in Merge Request follow OAI Formatting Rules"
def
message
=
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): All Changed files in Merge Request follow OAI Formatting Rules"
addGitLabMRComment
comment:
message
addGitLabMRComment
comment:
message
}
else
{
}
else
{
def
message
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): Some Changed files in Merge Request DO NOT follow OAI Formatting Rules"
def
message
=
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): Some Changed files in Merge Request DO NOT follow OAI Formatting Rules"
addGitLabMRComment
comment:
message
addGitLabMRComment
comment:
message
}
}
}
else
{
}
else
{
...
@@ -152,7 +152,7 @@ pipeline {
...
@@ -152,7 +152,7 @@ pipeline {
post
{
post
{
failure
{
failure
{
script
{
script
{
def
message
=
"OAI "
+
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): Merge Conflicts -- Cannot perform CI"
def
message
=
JOB_NAME
+
" build ("
+
BUILD_ID
+
"): Merge Conflicts -- Cannot perform CI"
addGitLabMRComment
comment:
message
addGitLabMRComment
comment:
message
currentBuild
.
result
=
'FAILURE'
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