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
916982f1
Unverified
Commit
916982f1
authored
5 years ago
by
Keshav Prasad
Committed by
GitHub
5 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: changed email notification code block
parent
fe396d20
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
+1
-8
vars/email_notify.groovy
with
1 addition
and
8 deletions
+1
-8
vars/email_notify.groovy
+
1
−
8
View file @
916982f1
...
...
@@ -19,10 +19,7 @@ def call() {
email_group_name
=
envDir
.
toUpperCase
()
+
"_EMAIL_GROUP"
try
{
email_group
=
evaluate
"$email_group_name"
step
([
$class
:
'Mailer'
,
notifyEveryUnstableBuild:
true
,
recipients:
email_group
,
sendToIndividuals:
true
])
emailext
body:
'''$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: Check console output at $BUILD_URL to view the results.'''
,
subject:
'$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
,
to:
email_group
return
}
catch
(
MissingPropertyException
ex
)
{
...
...
@@ -30,10 +27,6 @@ def call() {
}
if
(
env
.
GLOBAL_EMAIL_GROUP
!=
null
)
// step([$class: 'Mailer',
// notifyEveryUnstableBuild: true,
// recipients: "${env.GLOBAL_EMAIL_GROUP}",
// sendToIndividuals: true])
emailext
body:
'''$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS: Check console output at $BUILD_URL to view the results.'''
,
subject:
'$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
,
to:
env
.
GLOBAL_EMAIL_GROUP
else
println
ANSI_YELLOW
+
ANSI_BOLD
+
"Could not find global email group variable. Skipping email notification.."
+
ANSI_NORMAL
...
...
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