diff options
Diffstat (limited to 'jjb/common/include-agl-auto-conf.sh')
-rw-r--r-- | jjb/common/include-agl-auto-conf.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/jjb/common/include-agl-auto-conf.sh b/jjb/common/include-agl-auto-conf.sh index a097d5ae..8811d3fd 100644 --- a/jjb/common/include-agl-auto-conf.sh +++ b/jjb/common/include-agl-auto-conf.sh @@ -6,6 +6,14 @@ ################################################################################ export DLHOST="http://download.automotivelinux.org/" +if test x"" = x"${GERRIT_BRANCH}"; then + export DISTROBRANCH="master" +else + export DISTROBRANCH="${GERRIT_BRANCH}" +fi +#if test ! x"" = x"${RELEASE_BRANCH}"; then +# export DISTROBRANCH="$RELEASE_BRANCH" +#fi #limit parallel number of bitbake jobs and parallel jobs in make cat << EOF >> conf/auto.conf PREMIRRORS = "\ @@ -16,7 +24,7 @@ https://.*/.* ${DLHOST}/AGL/mirror/ \n \ " SSTATE_MIRRORS = " \ - file://.* ${DLHOST}/sstate-mirror/\${DEFAULTTUNE}/PATH \n \ + file://.* ${DLHOST}/sstate-mirror/${DISTROBRANCH}/\${DEFAULTTUNE}/PATH \n \ " # #file://.* file:///opt/AGL/sstate-mirror/\${MACHINE}/PATH \n |