SPEC-3414: use agl-publish --kernel-version 15/26215/1
authorCorentin LABBE <clabbe@baylibre.com>
Mon, 29 Mar 2021 09:08:03 +0000 (09:08 +0000)
committerCorentin LABBE <clabbe@baylibre.com>
Mon, 29 Mar 2021 10:59:32 +0000 (10:59 +0000)
We need to provide --kernel-version to agl-publish

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

index 26f2bf0..5a79524 100644 (file)
@@ -16,13 +16,19 @@ kci-publish() {
        if echo $GERRIT_PROJECT |grep -q apps ;then
                # for app
                BUILD_VERSION="AGL-app-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER"
+               KERNEL_VERSION="$BUILD_VERSION"
+               echo "APP: $BUILD_VERSION $KERNEL_VERSION"
        else
                if [ -z "$RELEASE_BRANCH" ];then
                        # for CI
                        BUILD_VERSION="AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER"
+                       KERNEL_VERSION="$DIST_BUILD_TOPIC"
+                       echo "CI: $BUILD_VERSION $KERNEL_VERSION"
                else
                        # for release
                        BUILD_VERSION="AGL-gerrit-$RELEASE_BRANCH-$RELEASE_VERSION"
+                       KERNEL_VERSION="$DIST_BB_DISTRO_VERSION"
+                       echo "RELEASE: $BUILD_VERSION $KERNEL_VERSION"
                fi
        fi
 
@@ -67,6 +73,7 @@ kci-publish() {
                --commit $DIST_BUILD_HASH \
                --arch $TARGETARCH \
                --branch $GERRIT_BRANCH \
+               --kernel_version $KERNEL_VERSION \
                --api http://kernelci.dev.baylibre.com:8081/
        # DEBUG purpose, verify what is uploaded
        if [ -e agl-build-meta ];then