summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-09 00:36:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-09 00:36:59 +0300
commitb42c21ee18b9e98a8073ba2df392c727095560b8 (patch)
tree39cdd188d0ee65fd6850778a0ccdb9c9bc7c2ae4
parent78eba244ea81c0dda6dd9dc5e9c9a18d7055f68a (diff)
downloadevol-tools-b42c21ee18b9e98a8073ba2df392c727095560b8.tar.gz
evol-tools-b42c21ee18b9e98a8073ba2df392c727095560b8.tar.bz2
evol-tools-b42c21ee18b9e98a8073ba2df392c727095560b8.tar.xz
evol-tools-b42c21ee18b9e98a8073ba2df392c727095560b8.zip
gitlab-ci: fail successaction script if previous error was detected.
-rwxr-xr-xgitlab-ci/susseccaction.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitlab-ci/susseccaction.sh b/gitlab-ci/susseccaction.sh
index 7ee114b..947e5a2 100755
--- a/gitlab-ci/susseccaction.sh
+++ b/gitlab-ci/susseccaction.sh
@@ -30,6 +30,9 @@ 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
+ rm -rf shared/buildid.log
+ rm -rf shared/error.log
+ exit 1
else
echo -e ${msg1} >${path}/${server}/${channel}/in
fi