Improve repo init for release builds 23/9523/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 25 May 2017 21:16:54 +0000 (23:16 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 25 May 2017 21:16:54 +0000 (23:16 +0200)
Change-Id: I67a2d48ae689a8a9fc8145dad83873aa0789c7fa
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-repo.sh

index fc85e6b..fee5213 100644 (file)
@@ -18,7 +18,12 @@ cd repoclone
 
 export REPODIR=`pwd`
 
-repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
+if test x"" = x"${RELEASE_VERSION}" -a x"" = x"${RELEASE_BRANCH}" ; then
+  repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
+else
+  repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -m ${RELEASE_BRANCH}_${RELEASE_VERSION}.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
+fi
+
 
 # next: repo sync and dump manifest
 repo sync --force-sync --detach --no-clone-bundle