From d19b00f17570438529af6b3f6b7c974f70357a34 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Wed, 26 Oct 2016 12:41:30 +0200 Subject: [PATCH] Adding success message --- success.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 success.sh diff --git a/success.sh b/success.sh new file mode 100755 index 00000000..abb68fea --- /dev/null +++ b/success.sh @@ -0,0 +1,9 @@ +#! /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 + + -- GitLab