aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2021-03-22 12:29:08 +0000
committerCorentin LABBE <clabbe@baylibre.com>2021-03-22 12:29:08 +0000
commit5334ca57b6f90b1cf248857f6936b81d60d465b0 (patch)
treeb4b5ea9022b5dd86fec06d0f996aba8fd5d6ffb4
parent0eb315eba9771cb178158e022f4707402bd82221 (diff)
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 <clabbe@baylibre.com>
-rw-r--r--jjb/common/include-agl-kci-publish-build-meta.sh9
1 files changed, 7 insertions, 2 deletions
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