From 03ee21ce3023ef71fd7f51e77cebf104ddf22b19 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Fri, 28 Oct 2016 18:54:54 +0200 Subject: [PATCH] Devices pipeline with success notification --- 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 0000000..abb68fe --- /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