diff options
author | 2017-05-25 23:16:54 +0200 | |
---|---|---|
committer | 2017-05-25 23:16:54 +0200 | |
commit | 2421fc8eeed7002119e269f2cc35c7d8a9072395 (patch) | |
tree | 3e8d8b8dd1975b68c9789481ddec038ec93c3dc6 /jjb/common/include-agl-repo.sh | |
parent | ffab00d195837a6afae119ad1c82c64d149ebbc6 (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.sh | 7 |
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 |