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
1e31a3e0
Unverified
Commit
1e31a3e0
authored
5 years ago
by
Keshav Prasad
Committed by
GitHub
5 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: array out of bound exception handler
parent
a7fae2a7
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/slack_notify.groovy
+2
-2
vars/slack_notify.groovy
with
2 additions
and
2 deletions
+2
-2
vars/slack_notify.groovy
+
2
−
2
View file @
1e31a3e0
...
...
@@ -16,9 +16,9 @@ def call(String buildStatus) {
slack_status
=
'good'
build_status
=
"Succeded"
}
envDir
=
sh
(
returnStdout:
true
,
script:
"echo $JOB_NAME"
).
split
(
'/'
)[-
3
].
trim
()
channel_env_name
=
envDir
.
toUpperCase
()
+
"_NOTIFY_SLACK_CHANNEL"
try
{
envDir
=
sh
(
returnStdout:
true
,
script:
"echo $JOB_NAME"
).
split
(
'/'
)[-
3
].
trim
()
channel_env_name
=
envDir
.
toUpperCase
()
+
"_NOTIFY_SLACK_CHANNEL"
slack_channel
=
evaluate
"$channel_env_name"
.
replace
(
'-'
,
''
)
slackSend
(
channel:
slack_channel
,
...
...
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