From 2421fc8eeed7002119e269f2cc35c7d8a9072395 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Thu, 25 May 2017 23:16:54 +0200 Subject: Improve repo init for release builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I67a2d48ae689a8a9fc8145dad83873aa0789c7fa Signed-off-by: Jan-Simon Möller --- jjb/common/include-agl-repo.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'jjb/common/include-agl-repo.sh') diff --git a/jjb/common/include-agl-repo.sh b/jjb/common/include-agl-repo.sh index fc85e6bc..fee52137 100644 --- a/jjb/common/include-agl-repo.sh +++ b/jjb/common/include-agl-repo.sh @@ -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 -- cgit 1.2.3-korg