diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-09 00:36:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-09 00:36:59 +0300 |
commit | b42c21ee18b9e98a8073ba2df392c727095560b8 (patch) | |
tree | 39cdd188d0ee65fd6850778a0ccdb9c9bc7c2ae4 | |
parent | 78eba244ea81c0dda6dd9dc5e9c9a18d7055f68a (diff) | |
download | evol-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-x | gitlab-ci/susseccaction.sh | 3 |
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 |