summaryrefslogtreecommitdiff
path: root/gitlab-ci/failaction.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-ci/failaction.sh')
-rwxr-xr-xgitlab-ci/failaction.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/gitlab-ci/failaction.sh b/gitlab-ci/failaction.sh
new file mode 100755
index 0000000..f3e63b6
--- /dev/null
+++ b/gitlab-ci/failaction.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+export path="bot"
+export server="irc.freenode.net"
+export channel="#evol-dev"
+export nick="evolbuildbot"
+
+export msg="Build failed. See https://gitlab.com/evol/clientdata/builds/$(clientdata/.shared/buildid.log)"
+
+echo "${msg}"
+
+mkdir ${path}
+
+ii -s ${server} -i ${path} -n ${nick} -f ${nick} &
+sleep 5s
+
+echo "/j ${channel}" > "${path}/${server}/in"
+sleep 10s
+
+echo ${msg} >${path}/${server}/${channel}/in
+sleep 3s
+
+rm -rf clientdata/.shared/buildid.log
+
+killall ii