diff options
author | 2017-03-09 02:50:07 +0100 | |
---|---|---|
committer | 2017-03-09 02:50:07 +0100 | |
commit | 015efa7d10ac488730001eccfa43db64f97e6cd1 (patch) | |
tree | d521790bb323d81ec3d2642e2763f0912016e9d4 /jjb/common/include-agl-run-test-rsync-release.sh | |
parent | a238dfd8589b52074b987c5d534194585b0e0cbc (diff) |
Add hardware test for release build
Change-Id: I8d57767974ebc00c4fa5014a8e82f7eae099650e
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-agl-run-test-rsync-release.sh')
-rw-r--r-- | jjb/common/include-agl-run-test-rsync-release.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/jjb/common/include-agl-run-test-rsync-release.sh b/jjb/common/include-agl-run-test-rsync-release.sh new file mode 100644 index 00000000..85605494 --- /dev/null +++ b/jjb/common/include-agl-run-test-rsync-release.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +#set -x +set -e + +echo "\n\n\n" +echo "#########################################" +echo "\n\n\n" + + +export RSYNCDST="/srv/download/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}" +export RSYNCSRC=$(pwd)/UPLOAD/ + +# construct upload folder +mv UPLOAD UPLOAD2 || true +rm -rf UPLOAD2 || true +mkdir -p UPLOAD/${MACHINE} +export DEST=$(pwd)/UPLOAD/${MACHINE} + + +cd $REPODIR + +cd output + +pwd +ls -alhR tmp/deploy/images + +# copy files to $DEST +for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT; do + eval cp -avL tmp/deploy/images/${TARGETMACHINE}/$(echo "$"${i}) ${DEST}/ +done + +tree $DEST +ls -alhR $DEST + +ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 mkdir -p ${RSYNCDST} + +rsync -avr -L -e "ssh -o StrictHostKeyChecking=no" $RSYNCSRC jenkins-slave@10.30.72.8:$RSYNCDST |