diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-06-08 23:26:13 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-06-08 23:26:13 +0200 |
commit | 60ab5c6e78b375c51051a7eacccf5f9ba3c9b37f (patch) | |
tree | 39fb3040d66b35b77fff812ae44ee156120527c5 /jjb/common | |
parent | c4eac0c8447d445b01a48b366a2eef7390882eb5 (diff) |
Build and upload app to CI folder
Change-Id: Ie7947c1a8472826a4f6ee1f4ce6ccaed56945f7c
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common')
-rw-r--r-- | jjb/common/include-apps-rsync-download-changeid.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/jjb/common/include-apps-rsync-download-changeid.sh b/jjb/common/include-apps-rsync-download-changeid.sh new file mode 100644 index 00000000..ad07c9f1 --- /dev/null +++ b/jjb/common/include-apps-rsync-download-changeid.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +#set -x +set -e + +echo "\n\n\n" +echo "#########################################" +echo "\n\n\n" + + +export RSYNCDST="/srv/download/AGL/upload/ci/${GERRIT_CHANGE_NUMBER}/${GERRIT_PATCHSET_NUMBER}" +export RSYNCSRC=$(pwd)/UPLOAD/ + +# construct upload folder +mv UPLOAD UPLOAD2 || true +rm -rf UPLOAD2 || true +mkdir -p UPLOAD/${TARGETARCH} +export DEST=$(pwd)/UPLOAD/${TARGETARCH} + +pwd + +ls + +ls package + + +cp package/*.wgt $DEST +tree $DEST +ls -alh $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 |