Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argupta
openfpm_pdata
Commits
d19b00f1
Commit
d19b00f1
authored
Oct 26, 2016
by
incardon
Browse files
Adding success message
parent
b34f94df
Changes
1
Hide whitespace changes
Inline
Side-by-side
success.sh
0 → 100755
View file @
d19b00f1
#! /bin/bash
if
[
$1
-eq
1
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Info:
\"
,
\"
color
\"
:
\"
#00FF00
\"
,
\"
text
\"
:
\"
$2
completed succeffuly the
$3
tests with
$4
\"
}] }"
https://hooks.slack.com/services/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
else
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Info:
\"
,
\"
color
\"
:
\"
#00FF00
\"
,
\"
text
\"
:
\"
$2
completed succeffuly the
$3
tests
\"
}] }"
https://hooks.slack.com/services/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
fi
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