From e9e3b2a7efde1573af478ef98ed7e7186811a338 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Apr 2016 13:33:29 +0300 Subject: gitla-ci: dont read artifacts if build failed already. --- gitlab-ci/failaction.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'gitlab-ci') diff --git a/gitlab-ci/failaction.sh b/gitlab-ci/failaction.sh index fb167c5..4b99b06 100755 --- a/gitlab-ci/failaction.sh +++ b/gitlab-ci/failaction.sh @@ -12,7 +12,7 @@ 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 msg="Build failed: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds/${buildid}" +export msg="Build failed: ${C}03${gitcommit}${R}. See https://gitlab.com/evol/clientdata/builds" echo "${msg}" @@ -25,14 +25,14 @@ echo "/j ${channel}" > "${path}/${server}/in" sleep 10s echo -e ${msg} >${path}/${server}/${channel}/in -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 -fi -sleep 3s - -rm -rf shared/buildid.log -rm -rf shared/error.log +#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 +#fi +sleep 5s + +#rm -rf shared/buildid.log +#rm -rf shared/error.log killall ii -- cgit v1.2.3-70-g09d2