Before trying to cat/source build-info, we have to fetch it from the
location where it was uploaded during the main build phase.
Change-Id: Ic9d8916a3a349f3b29cb2d5ef558c78729703908
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
set -x
+UPLOAD_URL_BASE=https://download.automotivelinux.org/AGL/upload/ci
+UPLOAD_URL=${UPLOAD_URL_BASE}/${RELEASE_BRANCH}/${RELEASE_VERSION}/${MACHINE}/deploy/images/${TARGETMACHINE}
+
cd $REPODIR
-source tmp/deploy/images/${TARGETMACHINE}/build-info
+
+wget -q ${UPLOAD_URL}/build-info
+if [ -e build-info ]; then
+ cat build-info
+ source build-info
+fi
echo "# LAVA lab target: ${LAVA_LAB} #"
# releng-scripts depends on jinja2 >= 2.9
set -x
+UPLOAD_URL_BASE=https://download.automotivelinux.org/AGL/upload/ci
+UPLOAD_URL=${UPLOAD_URL_BASE}/${GERRIT_CHANGE_NUMBER}/${GERRIT_PATCHSET_NUMBER}
+
cd $REPODIR
-#cat build-info
-if [ -e tmp/deploy/images/${TARGETMACHINE}/build-info ]; then
- cat tmp/deploy/images/${TARGETMACHINE}/build-info
- source tmp/deploy/images/${TARGETMACHINE}/build-info
+
+wget -q ${UPLOAD_URL}/build-info
+if [ -e build-info ]; then
+ cat build-info
+ source build-info
fi
echo "# LAVA lab target: ${LAVA_LAB} #"