From 5334ca57b6f90b1cf248857f6936b81d60d465b0 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Mon, 22 Mar 2021 12:29:08 +0000 Subject: Handl BUILD_VERSION for non-release build if BUILD_VERSION is empty, we are running a CI job. Change-Id: I5f5f859c5f30ea2ef54734cf99d083fbba686d38 Bug-AGL: SPEC-3414 Signed-off-by: Corentin LABBE --- jjb/common/include-agl-kci-publish-build-meta.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'jjb/common') diff --git a/jjb/common/include-agl-kci-publish-build-meta.sh b/jjb/common/include-agl-kci-publish-build-meta.sh index edf91558..8af4ecf2 100644 --- a/jjb/common/include-agl-kci-publish-build-meta.sh +++ b/jjb/common/include-agl-kci-publish-build-meta.sh @@ -17,8 +17,13 @@ kci-publish() { # for app BUILD_VERSION="AGL-app-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER" else - # for release - BUILD_VERSION="AGL-gerrit-$RELEASE_BRANCH-$RELEASE_VERSION" + if [ -z "$RELEASE_BRANCH" ];then + # for CI + BUILD_VERSION="AGL-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER" + else + # for release + BUILD_VERSION="AGL-gerrit-$RELEASE_BRANCH-$RELEASE_VERSION" + fi fi # TARGETARCH exists only in ci-apps -- cgit 1.2.3-korg