diff options
Diffstat (limited to 'gitlab-ci/susseccaction.sh')
-rwxr-xr-x | gitlab-ci/susseccaction.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gitlab-ci/susseccaction.sh b/gitlab-ci/susseccaction.sh index 16edd68..7ee114b 100755 --- a/gitlab-ci/susseccaction.sh +++ b/gitlab-ci/susseccaction.sh @@ -6,12 +6,14 @@ 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 msg1="Build success: ${gitcommit}. See https://gitlab.com/evol/clientdata/builds/${buildid}" -export msg2="Build failed: ${gitcommit}. See https://gitlab.com/evol/clientdata/builds/${buildid}" +export msg1="Build success: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds/${buildid}" +export msg2="Build failed: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds/${buildid}" echo "${msg}" @@ -24,12 +26,12 @@ echo "/j ${channel}" > "${path}/${server}/in" sleep 10s if [[ -n "${error}" ]]; then - echo ${msg2} >${path}/${server}/${channel}/in + echo -e ${msg2} >${path}/${server}/${channel}/in sleep 2s export LINK=$(pastebinit -b http://paste.ubuntu.com/ shared/error.log) echo "Error log: ${LINK}" >${path}/${server}/${channel}/in else - echo ${msg1} >${path}/${server}/${channel}/in + echo -e ${msg1} >${path}/${server}/${channel}/in fi sleep 3s |