From b42c21ee18b9e98a8073ba2df392c727095560b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Apr 2016 00:36:59 +0300 Subject: gitlab-ci: fail successaction script if previous error was detected. --- gitlab-ci/susseccaction.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-70-g09d2