aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-repo.sh
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-25 23:16:54 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-25 23:16:54 +0200
commit2421fc8eeed7002119e269f2cc35c7d8a9072395 (patch)
tree3e8d8b8dd1975b68c9789481ddec038ec93c3dc6 /jjb/common/include-agl-repo.sh
parentffab00d195837a6afae119ad1c82c64d149ebbc6 (diff)
Improve repo init for release builds
Change-Id: I67a2d48ae689a8a9fc8145dad83873aa0789c7fa Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-agl-repo.sh')
-rw-r--r--jjb/common/include-agl-repo.sh7
1 files changed, 6 insertions, 1 deletions
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