From: build.automotivelinux.org Date: Thu, 20 Jun 2019 12:59:27 +0000 (+0200) Subject: Fix the email report script X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=75b660105ba855baa4e14ae9d1dff91ac36aa87d;p=ci-management.git Fix the email report script We run under set -e . Any non-zero return value will instantly stop execution. We cannot check for '0'. Please keep that in mind. Also fix the location of the ci artifacts. Bug-AGL: SPEC-2177 Signed-off-by: build.automotivelinux.org Change-Id: Ib72ff3b13b3765f18dbce8a966c9e92a6a8ebb6b --- diff --git a/jjb/common/include-agl-send-email-report.sh b/jjb/common/include-agl-send-email-report.sh index b8be71aa..84f18cc8 100644 --- a/jjb/common/include-agl-send-email-report.sh +++ b/jjb/common/include-agl-send-email-report.sh @@ -8,12 +8,11 @@ set -x UPLOAD_URL_BASE=http://download.automotivelinux.org/AGL/upload/ci -UPLOAD_URL=${UPLOAD_URL_BASE}/${GERRIT_CHANGE_NUMBER}/${GERRIT_PATCHSET_NUMBER}/qemux86-64/deploy/images/qemux86-64 +UPLOAD_URL=${UPLOAD_URL_BASE}/${GERRIT_CHANGE_NUMBER}/${GERRIT_PATCHSET_NUMBER}/qemux86-64/ -wget -q ${UPLOAD_URL}/build-info -if [ $? != 0 ]; then - exit 0 -fi +set | grep MACH + +wget -q ${UPLOAD_URL}/build-info || exit 0 if [ ! -s build-info ]; then exit 0