From 4c18d62548cd1a1e01e9ac5ff1b13b58ac96bb3b Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Fri, 26 May 2017 19:40:30 +0200 Subject: Handle nogfx targets with different crosssdk image and add new lava-tool setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ieb624d96b0901415ab2ac05d3c436fe8e135bf5e Signed-off-by: Jan-Simon Möller --- jjb/common/include-agl-header.sh | 36 ++++++++-------------- jjb/common/include-agl-run-test-short-release.sh | 14 --------- .../release-jjb-dab-snapshot.yaml | 1 + 3 files changed, 13 insertions(+), 38 deletions(-) (limited to 'jjb') 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 < ~/.local/share/python_keyring/keyringrc.cfg -[backend] -default-keyring=keyring.backends.file.PlaintextKeyring -EOF - -cat < ~/.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 diff --git a/jjb/release-jjb-dab-snapshot/release-jjb-dab-snapshot.yaml b/jjb/release-jjb-dab-snapshot/release-jjb-dab-snapshot.yaml index c5fa0c9b..e30dcc20 100644 --- a/jjb/release-jjb-dab-snapshot/release-jjb-dab-snapshot.yaml +++ b/jjb/release-jjb-dab-snapshot/release-jjb-dab-snapshot.yaml @@ -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 -- cgit 1.2.3-korg