summaryrefslogtreecommitdiff
path: root/gitlab-ci/failaction.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-ci/failaction.sh')
-rwxr-xr-xgitlab-ci/failaction.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitlab-ci/failaction.sh b/gitlab-ci/failaction.sh
index a099a96..fb167c5 100755
--- a/gitlab-ci/failaction.sh
+++ b/gitlab-ci/failaction.sh
@@ -6,11 +6,13 @@ 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"
cd clientdata
export ghead=$(git log --pretty=oneline -n 1 | awk '{print $1}')
export gitcommit=$(echo ${ghead} | cut -c 1-7)
-export msg="Build failed: ${gitcommit}. See https://gitlab.com/evol/clientdata/builds/${buildid}"
+export msg="Build failed: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds/${buildid}"
echo "${msg}"
@@ -22,7 +24,7 @@ sleep 5s
echo "/j ${channel}" > "${path}/${server}/in"
sleep 10s
-echo ${msg} >${path}/${server}/${channel}/in
+echo -e ${msg} >${path}/${server}/${channel}/in
if [[ -n "${error}" ]]; then
sleep 2s
export LINK=$(pastebinit -b http://paste.ubuntu.com/ shared/error.log)