Add missing commit variable
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 5 Nov 2021 12:14:50 +0000 (13:14 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 5 Nov 2021 12:14:50 +0000 (13:14 +0100)
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: I7f6a95201bac7ef409fbac9171cbbdd5a8932bf0

jjb/common/include-agl-kci-publish-build-meta.sh

index 885b8c9..26db238 100644 (file)
@@ -75,6 +75,8 @@ kci-publish() {
        echo "DEBUG: arch $TARGETARCH"
        echo "DEBUG: branch $GERRIT_BRANCH"
 
+       [[ -z $DIST_BUILD_HASH ]] && DIST_BUILD_HASH="$BUILD_VERSION"
+
        $RELENG/utils/agl-publish.py --machine ${TARGETMACHINE} \
                --build_version $BUILD_VERSION \
                --commit $DIST_BUILD_HASH \