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
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