diff options
Diffstat (limited to 'gitlab-ci/failaction.sh')
-rwxr-xr-x | gitlab-ci/failaction.sh | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/gitlab-ci/failaction.sh b/gitlab-ci/failaction.sh deleted file mode 100755 index 1771cf8..0000000 --- a/gitlab-ci/failaction.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -export path="bot" -export server="irc.freenode.net" -export channel="#evol-dev" -export nick="evolbuildbot" -export buildid="$(cat clientdata/shared/buildid.log)" -export error="$(cat clientdata/shared/error.log)" -export C="\0003" -export R="\x0f" -export name="client-data" - -cd clientdata -export gitcommit=$(echo ${CI_BUILD_REF} | cut -c 1-7) -export msg="[${C}02${name}:${CI_BUILD_REF_NAME}${R}] Build success: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds" - -echo "${msg}" - -mkdir ${path} - -ii -s ${server} -i ${path} -n ${nick} -f ${nick} & -sleep 5s - -echo "/j ${channel}" > "${path}/${server}/in" -sleep 10s - -echo -e ${msg} >${path}/${server}/${channel}/in -#if [[ -n "${error}" ]]; then -# sleep 2s -# export LINK=$(pastebinit -b http://paste.ubuntu.com/ shared/error.log) -# echo "Error log: ${LINK}" >${path}/${server}/${channel}/in -#fi -sleep 5s - -#rm -rf shared/buildid.log -#rm -rf shared/error.log - -killall ii |