aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2021-03-29 09:08:03 +0000
committerCorentin LABBE <clabbe@baylibre.com>2021-03-29 10:59:32 +0000
commit509d6162e743f6fcc36d34445bdb332acc103807 (patch)
treeab417c90219bc9a5292159746c8ba3facb3c107c
parentf14f5cdbf4704315137e6dfd51d4b3e4cdb6ae21 (diff)
SPEC-3414: use agl-publish --kernel-version
We need to provide --kernel-version to agl-publish Change-Id: I6f4aead97abf7c5c04f4ff007024ee8046f3522b Bug-AGL: SPEC-3414 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
-rw-r--r--jjb/common/include-agl-kci-publish-build-meta.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/jjb/common/include-agl-kci-publish-build-meta.sh b/jjb/common/include-agl-kci-publish-build-meta.sh
index 26f2bf0b..5a79524a 100644
--- a/jjb/common/include-agl-kci-publish-build-meta.sh
+++ b/jjb/common/include-agl-kci-publish-build-meta.sh
@@ -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