export TARGETIMAGE="agl-demo-platform\${TARGETQA}"
export TARGETIMAGEnogfx="core-image-minimal"
+export TARGETRELEASEVERSION=""
+export TARGETRELEASEBRANCH=""
+
# apply GERRIT_*
if test -n "${GERRIT_PROJECT}"; then
export TARGETPROJECT="${GERRIT_PROJECT}"
export TARGETREFSPEC="${GERRIT_REFSPEC}"
fi
+if test -n "${RELEASE_VERSION}"; then
+export TARGETRELEASEVERSION="${RELEASE_VERSION}"
+fi
+
+if test -n "${RELEASE_BRANCH}"; then
+export TARGETRELEASEBRANCH="${RELEASE_BRANCH}"
+export TARGETBRANCH="${RELEASE_BRANCH}"
+export TARGETREFSPEC="refs/heads/${RELEASE_BRANCH}"
+fi
+
if test x"" = x"${MACHINE}"; then
export MACHINE="qemux86-64"
fi
export TARGETFEATURES="${TARGETFEATURESnogfx}"
fi
+if test ! x"" = x"$TARGETRELEASEVERSION"; then
+MANIFESTMOD="-m ${TARGETRELEASEBRANCH}_${TARGETRELEASEVERSION}"
+else
+MANIFESTMOD=""
+fi
+
if $DEBUG; then
set | grep ^TARGET || true
set | grep ^GERRIT || true
mkdir -p repoclone
cd repoclone
-repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
+repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH $MANIFESTMOD -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
# next: repo sync and dump manifest
repo sync --force-sync --detach --no-clone-bundle
echo "#######################################"
export RSYNCSRC="$(pwd)/tmp/deploy/images/"
-export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/release/chinook/"
+export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/release/${RELEASE_BRANCH}/${RELEASE_VERSION}/"
echo "would do rsync -avr -e \"ssh -o StrictHostKeyChecking=no\" $RSYNCSRC $RSYNCDST "
name: GERRIT_REFSPEC
default: refs/heads/chinook
description: "refspec to build"
+ - string:
+ name: RELEASE_VERSION
+ default: 2.99.3
+ description: "release version number for build"
+ - string:
+ name: RELEASE_BRANCH
+ default: chinook
+ description: "release branch to build"
- string:
name: UPLOAD
default: yes_or_no
triggers:
- gerrit-trigger-patch-submitted-silent:
name: 'AGL/AGL-repo'
- branch: 'refs/tags/**'
+ branch: 'refs/tags/chinook/**'
wrappers:
- agl-infra-wrappers: