SPEC-3414: start to use agl-publish 96/26196/1
authorCorentin LABBE <clabbe@baylibre.com>
Tue, 23 Mar 2021 10:21:55 +0000 (10:21 +0000)
committerCorentin LABBE <clabbe@baylibre.com>
Tue, 23 Mar 2021 10:21:55 +0000 (10:21 +0000)
Start to use agl-publish for verifying metadata are correctly filled.
(Fix also a typo in qemux86-64)

Change-Id: I181e2230940b8bb7094674e9de97f51407018ee1
Bug-AGL: SPEC-3414
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
jjb/common/include-agl-kci-publish-build-meta.sh

index 8af4ecf..cc2f700 100644 (file)
@@ -34,7 +34,7 @@ kci-publish() {
        qemuarm)
                TARGETARCH="arm"
        ;;
-       qemux86_64)
+       qemux86-64)
                TARGETARCH="x86_64"
        ;;
        raspberrypi4)
@@ -55,12 +55,19 @@ kci-publish() {
        echo "DEBUG: commit $DIST_BUILD_HASH"
        echo "DEBUG: arch $TARGETARCH"
        echo "DEBUG: branch $GERRIT_BRANCH"
-       return 0
-       ./utils/agl-publish.py --machine ${TARGETMACHINE} \
+
+       $RELENG/utils/agl-publish.py --machine ${TARGETMACHINE} \
                --build_version $BUILD_VERSION \
                --commit $DIST_BUILD_HASH \
                --arch $TARGETARCH \
                --branch $GERRIT_BRANCH
+       # DEBUG purpose, verify what is uploaded
+       if [ -e agl-build-meta ];then
+               find agl-build-meta -type f | xargs cat
+       else
+               echo "ERROR: no agl-build-meta directory"
+       fi
+       return 0
 }
 
 kci-publish