diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-08 21:26:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-08 21:26:56 +0300 |
commit | b14a070014d30f186a2242032607ad4b57aebc79 (patch) | |
tree | a16f8a51bc784f406a1633b2d05ead6af34fb8dd | |
parent | 6564ed77e0a7857c0999ac674b83eecc1f3654aa (diff) | |
download | tools-b14a070014d30f186a2242032607ad4b57aebc79.tar.gz tools-b14a070014d30f186a2242032607ad4b57aebc79.tar.bz2 tools-b14a070014d30f186a2242032607ad4b57aebc79.tar.xz tools-b14a070014d30f186a2242032607ad4b57aebc79.zip |
gitlab-ci: split report scripts into success and fail.
-rwxr-xr-x | gitlab-ci/failaction.sh (renamed from gitlab-ci/completeaction.sh) | 6 | ||||
-rwxr-xr-x | gitlab-ci/susseccaction.sh | 25 |
2 files changed, 29 insertions, 2 deletions
diff --git a/gitlab-ci/completeaction.sh b/gitlab-ci/failaction.sh index d1d568f..f3e63b6 100755 --- a/gitlab-ci/completeaction.sh +++ b/gitlab-ci/failaction.sh @@ -5,7 +5,9 @@ export server="irc.freenode.net" export channel="#evol-dev" export nick="evolbuildbot" -echo "$1" +export msg="Build failed. See https://gitlab.com/evol/clientdata/builds/$(clientdata/.shared/buildid.log)" + +echo "${msg}" mkdir ${path} @@ -15,7 +17,7 @@ sleep 5s echo "/j ${channel}" > "${path}/${server}/in" sleep 10s -echo $1 >${path}/${server}/${channel}/in +echo ${msg} >${path}/${server}/${channel}/in sleep 3s rm -rf clientdata/.shared/buildid.log diff --git a/gitlab-ci/susseccaction.sh b/gitlab-ci/susseccaction.sh new file mode 100755 index 0000000..508c707 --- /dev/null +++ b/gitlab-ci/susseccaction.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 success. 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 |