From: Jan-Simon Möller Date: Thu, 25 May 2017 21:16:54 +0000 (+0200) Subject: Improve repo init for release builds X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F9523%2F1;p=ci-management.git Improve repo init for release builds Change-Id: I67a2d48ae689a8a9fc8145dad83873aa0789c7fa Signed-off-by: Jan-Simon Möller --- 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