aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-repo.sh
blob: 648e01e8177fedcbdcfc8f73cd54949aabe148f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# (c) 2016 Jan-Simon Moeller, dl9pf(at)gmx.de
# License: GPLv2

################################################################################
## Repo init/sync
################################################################################

# create shared downloads and sstate-cache directory
mkdir -p downloads
mkdir -p sstate-cache

# remove old files, we want to test a fresh clone
export XTMP="$$"
mv repoclone repoclone$XTMP || true
( rm -rf repoclone$XTMP & ) || true
mkdir -p repoclone
cd repoclone

export REPODIR=`pwd`

if test x"" = x"${RELEASE_VERSION}" -a x"" = x"${RELEASE_BRANCH}" ; then
    repo init --repo-branch=repo-1 --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
else
  if test x"AGL/meta-renesas-rcar-gen3" = x"${TARGETPROJECT}" ; then
    repo init --repo-branch=repo-1 --reference=/opt/AGL/preclone -q -b master -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
  else
  repo init --repo-branch=repo-1 --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -m ${RELEASE_BRANCH}_${RELEASE_VERSION}.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
  fi
fi


# next: repo sync and dump manifest
repo sync --force-broken --force-sync --detach --no-clone-bundle