Handle nogfx targets with different crosssdk image and add new lava-tool setup 27/9527/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 26 May 2017 17:40:30 +0000 (19:40 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 26 May 2017 17:40:30 +0000 (19:40 +0200)
Change-Id: Ieb624d96b0901415ab2ac05d3c436fe8e135bf5e
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-header.sh
jjb/common/include-agl-run-test-short-release.sh
jjb/release-jjb-dab-snapshot/release-jjb-dab-snapshot.yaml

index 883f6ac..fab036d 100644 (file)
@@ -36,26 +36,18 @@ export TARGETQA=""
 export TARGETIMAGE="agl-demo-platform\${TARGETQA}"
 export TARGETIMAGEnogfx="core-image-minimal"
 
-export TARGETSDK="populate_sdk"
 export TARGETSDKIMAGE="agl-demo-platform-crosssdk"
 
-export TARGETMACHINE=${MACHINE}
-if test x"porter-nogfx" = x"${MACHINE}" ; then
-  export TARGETMACHINE="porter"
-fi
-if test x"m3ulcb-nogfx" = x"${MACHINE}" ; then
-  export TARGETMACHINE="m3ulcb"
-fi
 
 # apply GERRIT_*
 if test -n "${GERRIT_PROJECT}"; then
-export TARGETPROJECT="${GERRIT_PROJECT}"
+    export TARGETPROJECT="${GERRIT_PROJECT}"
 fi
 if test -n "${GERRIT_BRANCH}"; then
     export TARGETBRANCH="${GERRIT_BRANCH}"
 fi
 if test -n "${GERRIT_REFSPEC}"; then
-export TARGETREFSPEC="${GERRIT_REFSPEC}"
+    export TARGETREFSPEC="${GERRIT_REFSPEC}"
 fi
 
 if test x"" = x"${MACHINE}"; then
@@ -127,18 +119,27 @@ done
 eval TARGETIMAGE="$TARGETIMAGE"
 eval TARGETIMAGEnogfx="$TARGETIMAGEnogfx"
 
+# The 'real' machine name
+export TARGETMACHINE=${MACHINE}
+
+# The exceptions
 if $NOGFX; then
     export TARGETIMAGE=${TARGETIMAGEnogfx}
     export TARGETFEATURES="${TARGETFEATURESnogfx}"
 fi
+# porter-nogfx means no graphic drivers
 if test x"porter-nogfx" = x"$MACHINE"; then
     export TARGETIMAGE=${TARGETIMAGEnogfx}
     export TARGETFEATURES="${TARGETFEATURESnogfx}"
+    export TARGETMACHINE="porter"
+    export TARGETSDKIMAGE="agl-image-ivi-crosssdk"
 fi
-
+# m3ulcb-nogfx means no graphic drivers
 if test x"m3ulcb-nogfx" = x"$MACHINE"; then
     export TARGETIMAGE=${TARGETIMAGEnogfx}
     export TARGETFEATURES="${TARGETFEATURESnogfx}"
+    export TARGETMACHINE="m3ulcb"
+    export TARGETSDKIMAGE="agl-image-ivi-crosssdk"
 fi
 
 #if $DEBUG; then
@@ -147,20 +148,7 @@ set | grep ^GERRIT || true
 set | grep ^MACHINE || true
 #fi
 
-set -x
-
-#rm -rf ~/.gitconfi* || true
-
 if test ! -f ~/.gitconfig ; then 
   git config --global user.email "jenkins-dontreply@build.automotivelinux.org"
   git config --global user.name "jenkins-dontreply@build.automotivelinux.org"
 fi
-
-#git config --global user.email "jenkins-dontreply@build.automotivelinux.org"
-#sync
-#sleep 1
-#ls -alh ~/.gitconfi*
-#rm -rf ~/.gitconfig.lock || true
-#git config --global user.name "jenkins-dontreply@build.automotivelinux.org"
-
-set +x
index 11cfc5a..df5bac8 100644 (file)
@@ -11,20 +11,6 @@ set -x
 echo "## ${MACHINE} ##"
 cd $REPODIR
 
-echo "default keyring config"
-mkdir -p ~/.local/share/python_keyring/
-cat <<EOF >  ~/.local/share/python_keyring/keyringrc.cfg
-[backend]
-default-keyring=keyring.backends.file.PlaintextKeyring
-EOF
-
-cat <<EOF > ~/.local/token
-$AGLLAVATOKEN
-EOF
-
-lava-tool auth-add --token-file ~/.local/token https://agl-jenkins-user@porter.automotivelinux.org
-rm ~/.local/token
-
 echo "## $TESTJOBFILE ##"
 
 if [ -e $TESTJOBFILE ] ; then
index c5fa0c9..e30dcc2 100644 (file)
@@ -85,6 +85,7 @@
           - ../common/include-agl-bitbake-sdk.sh
           - ../common/include-agl-run-test-prepare.sh
           - ../common/include-agl-run-test-rsync-release.sh
+          - ../common/include-agl-lava-labs-prepare.sh
           - ../common/include-agl-run-test-short-release.sh
       - shell:
           !include-raw-escape: include-release-jjb-dab-snapshot-rsync.sh