Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
f30fcebb
Unverified
Commit
f30fcebb
authored
5 years ago
by
Keshav Prasad
Committed by
GitHub
5 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: Adding build status
parent
2f750f96
shared-lib_627aacd
release-3.4.0-shared-lib
release-2.7.0-shared-lib
release-2.6.0-shared-lib
release-2.5.0-shared-lib
release-2.4.0-shared-lib
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vars/email_notify.groovy
+8
-1
vars/email_notify.groovy
with
8 additions
and
1 deletion
+8
-1
vars/email_notify.groovy
+
8
−
1
View file @
f30fcebb
def
call
()
{
def
call
(
String
buildStatus
)
{
try
{
ansiColor
(
'xterm'
)
{
String
ANSI_GREEN
=
"\u001B[32m"
...
...
@@ -6,6 +6,13 @@ def call() {
String
ANSI_BOLD
=
"\u001B[1m"
String
ANSI_RED
=
"\u001B[31m"
String
ANSI_YELLOW
=
"\u001B[33m"
if
(
buildStatus
==
"FAILURE"
)
currentBuild
.
result
=
"FAILURE"
else
if
(
buildStatus
==
"SUCCESS"
)
currentBuild
.
result
=
"SUCCESS"
else
currentBuild
.
result
=
"UNSTABLE"
stage
(
'email_notify'
)
{
envDir
=
sh
(
returnStdout:
true
,
script:
"echo $JOB_NAME"
).
split
(
'/'
)[-
3
].
trim
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets