Fix the email report script 90/21690/1
authorbuild.automotivelinux.org <jenkins@automotivelinux.org>
Thu, 20 Jun 2019 12:59:27 +0000 (14:59 +0200)
committerbuild.automotivelinux.org <jenkins@automotivelinux.org>
Thu, 20 Jun 2019 12:59:27 +0000 (14:59 +0200)
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 <jenkins@automotivelinux.org>
Change-Id: Ib72ff3b13b3765f18dbce8a966c9e92a6a8ebb6b

jjb/common/include-agl-send-email-report.sh

index b8be71a..84f18cc 100644 (file)
@@ -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