---
- project:
name: ci-apps-AGL
+ aglbranch:
+ - master
+ - dab
architecture:
- aarch64
- x86-64
- settings-wifi
jobs:
- ci-apps-{project}-verify
- - ci-apps-{project}-verify-CIB-{architecture}
+ - ci-apps-{project}-verify-{aglbranch}-CIB-{architecture}
- ci-apps-{project}-verify-CIB-finish-success
- ci-apps-{project}-verify-failure
- ci-apps-{project}-remove-artifacts
# ci-apps-{project}-verify-CIB-{architecture} = build job per arch
################################################################################
- job-template:
- name: 'ci-apps-{project}-verify-CIB-{architecture}'
+ name: 'ci-apps-{project}-verify-{aglbranch}-CIB-{architecture}'
project-type: freestyle
concurrent: true
node: agl-test-slave
name: TARGETARCH
default: '{architecture}'
description: "Machine to build"
+ - string:
+ name: AGLBRANCH
+ default: '{aglbranch}'
+ description: "AGL release branch to use"
build-discarder:
days-to-keep: 30
builders:
- shell:
- # including from ../common into ci-apps-{project}-verify-CIB-{architecture}
+ # including from ../common into ci-apps-{project}-verify-{aglbranch}-CIB-{architecture}
!include-raw-escape:
- ../common/include-apps-header.sh
- ../common/include-apps-fetch-install-sdk.sh
## apps-fetch-install-sdk.sh
################################################################################
-# should probably switch to release ... or multiple (release/snapshot) fwiw
+# default to master
SDKBASEURL="https://download.automotivelinux.org/AGL/snapshots/master/latest/${TARGETSDKMACHINE}/deploy/sdk/"
+
+# should probably switch to release ... or multiple (release/snapshot) fwiw
+if test x"" = x"$AGLBRANCH"; then echo "AGLBRANCH not set, quitting" ; exit 1 ; fi
+
+if test x"master" = x"$AGLBRANCH" ; then
+ SDKBASEURL="https://download.automotivelinux.org/AGL/snapshots/master/latest/${TARGETSDKMACHINE}/deploy/sdk/"
+fi
+if test x"chinook" = x"$AGLBRANCH" ; then
+ SDKBASEURL="https://download.automotivelinux.org/AGL/release/chinook/latest/${TARGETSDKMACHINE}/deploy/sdk/"
+fi
+if test x"dab" = x"$AGLBRANCH" ; then
+ SDKBASEURL="https://download.automotivelinux.org/AGL/release/dab/latest/${TARGETSDKMACHINE}/deploy/sdk/"
+fi
+
+
export TARGETSDKNAME=$(curl -s "$SDKBASEURL" | grep -e "crosssdk.*\.sh<" | sed -e "s#.*<a href=\"##g" -e "s#\">poky-agl.*##g")
if test x"" = x"${TARGETSDKNAME}" ; then
if test x"" = x"$(eval ls ${SDKHOSTDIR}/environment-setup* | grep "agl-" | grep ${TARGETSDKARCH} 2>/dev/null)" ; then
bash ${TARGETSDKNAME} -d ${SDKHOSTDIR}/ -y
fi
-#set -x
# find out the env setup script
export TARGETSDKENVSCRIPT="$(eval ls ${SDKHOSTDIR}/environment-setup* | grep "agl-" | grep ${TARGETSDKARCH} 2>/dev/null)"
echo "About to source ${TARGETSDKENVSCRIPT}"
source "${TARGETSDKENVSCRIPT}"
-#set | grep -i sysroots || true
-#set +x
r)
export TARGETREFSPEC="$OPTARG"
;;
+ t)
+ export AGLBRANCH="$OPTARG"
+ ;;
v)
VERBOSE=true
function vprint() {
echo " -- aarch64"
echo " -p <project> - project to use (default=AGL/AGL-repo)"
echo " -r <refspec> - refspec to use (default=refs/heads/master)"
+ echo " -t <branch> - AGL release branch to use (default=master , e.g. dab)"
echo " -v - verbose"
echo " -x - set -x"
echo "--------------------------------------------------------------------------------"
# construct upload folder
#mv UPLOAD UPLOAD2 || true
-rm -rf UPLOAD/${TARGETARCH} || true
-mkdir -p UPLOAD/${TARGETARCH}
-export DEST=$(pwd)/UPLOAD/${TARGETARCH}
+if test x"" = x"${AGLBRANCH}" ; then
+ rm -rf UPLOAD/${TARGETARCH} || true
+ mkdir -p UPLOAD/${TARGETARCH}
+ export DEST=$(pwd)/UPLOAD/${TARGETARCH}
+else
+ rm -rf UPLOAD/${AGLBRANCH}/${TARGETARCH} || true
+ mkdir -p UPLOAD/${AGLBRANCH}/${TARGETARCH}
+ export DEST=$(pwd)/UPLOAD/${AGLBRANCH}/${TARGETARCH}
+fi
pushd ${MYPROJECT}
pwd