summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com>2019-06-12 11:11:53 +0300
committerGitHub <noreply@github.com>2019-06-12 11:11:53 +0300
commit08b0212bf975b2602506eab41d5d28d48a8268cf (patch)
tree42e3bfea66c11539136e7331580caae0534a77b3 /tests
parent7ee5dc37ae6bca9945db518b2b0cc7d69ce36ae0 (diff)
netdata/packaging: Add option for slack messages to be pushed on alternative channel, than the default. Push all info to #automation, make #ci-status error reporting only (#6268)
I 'll be monitoring closely the change - it is related to our CI and does not directly affect our customers
Diffstat (limited to 'tests')
-rwxr-xr-xtests/installer/slack.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/installer/slack.sh b/tests/installer/slack.sh
index 3c5f94a453..83cb5fa7c4 100755
--- a/tests/installer/slack.sh
+++ b/tests/installer/slack.sh
@@ -13,6 +13,7 @@
post_message() {
TYPE="$1"
MESSAGE="$2"
+ CUSTOM_CHANNEL="$3"
case "$TYPE" in
"PLAIN_MESSAGE")
@@ -24,7 +25,13 @@ post_message() {
EVENT_LINE="${TRAVIS_JOB_NUMBER}: Event type '${TRAVIS_EVENT_TYPE}' #${TRAVIS_PULL_REQUEST}, on '${TRAVIS_OS_NAME}' "
fi
+ if [ -n "${CUSTOM_CHANNEL}" ]; then
+ echo "Sending travis message to custom channel ${CUSTOM_CHANNEL}"
+ OPTIONAL_CHANNEL_INFO="\"channel\": \"${CUSTOM_CHANNEL}\","
+ fi
+
POST_MESSAGE="{
+ ${OPTIONAL_CHANNEL_INFO}
\"text\": \"${TRAVIS_REPO_SLUG}, ${MESSAGE}\",
\"attachments\": [{
\"text\": \"${TRAVIS_JOB_NUMBER}: Event type '${TRAVIS_EVENT_TYPE}', on '${TRAVIS_OS_NAME}' \",