aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-26 19:40:30 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-26 19:40:30 +0200
commit4c18d62548cd1a1e01e9ac5ff1b13b58ac96bb3b (patch)
treec2fa80b91768a361b530910fe2339f6f1537e3de /jjb/common
parent2421fc8eeed7002119e269f2cc35c7d8a9072395 (diff)
Handle nogfx targets with different crosssdk image and add new lava-tool setup
Change-Id: Ieb624d96b0901415ab2ac05d3c436fe8e135bf5e Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common')
-rw-r--r--jjb/common/include-agl-header.sh36
-rw-r--r--jjb/common/include-agl-run-test-short-release.sh14
2 files changed, 12 insertions, 38 deletions
diff --git a/jjb/common/include-agl-header.sh b/jjb/common/include-agl-header.sh
index 883f6ac9..fab036db 100644
--- a/jjb/common/include-agl-header.sh
+++ b/jjb/common/include-agl-header.sh
@@ -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
diff --git a/jjb/common/include-agl-run-test-short-release.sh b/jjb/common/include-agl-run-test-short-release.sh
index 11cfc5a1..df5bac81 100644
--- a/jjb/common/include-agl-run-test-short-release.sh
+++ b/jjb/common/include-agl-run-test-short-release.sh
@@ -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