diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-05-31 02:16:58 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-05-31 02:16:58 +0200 |
commit | 23bba586d4b651cfbe541d40c4119a4c0737b2d0 (patch) | |
tree | 14b72410771aa75bc78c6fff2899185ad32c94f5 /jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh | |
parent | e282b61ffa7c8a7f465d9893d610fa329785785e (diff) |
Fix typo and upload mechanism
Change-Id: I4e7494eec84102cc59fe917b01193ff0bdc8b893
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh')
-rw-r--r-- | jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh b/jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh index 50944a8f..3ffeb244 100644 --- a/jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh +++ b/jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh @@ -19,9 +19,9 @@ echo "#######################################" cd repoclone/output -export REMOTEDST="/srv/download/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}/" +export REMOTEDST="/srv/download/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}/${MACHINE}/" export RSYNCDST="jenkins-slave@10.30.72.8:${REMOTEDST}" -export RSYNCSRC=$(pwd)/UPLOAD/ +export RSYNCSRC=$(pwd)/UPLOAD/${MACHINE} # construct upload folder mv UPLOAD UPLOAD2 || true @@ -44,11 +44,13 @@ tree $DEST ls -alhR $DEST + + echo "would do rsync -avr -e \"ssh -o StrictHostKeyChecking=no\" $RSYNCSRC $RSYNCDST " if test x"yes" = x"$UPLOAD" ; then ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 mkdir -p ${REMOTEDST} - rsync -avr -e "ssh -o StrictHostKeyChecking=no" $RSYNCSRC $RSYNCDST + rsync --delete -avr -e "ssh -o StrictHostKeyChecking=no" $RSYNCSRC/* $RSYNCDST fi exit 0
\ No newline at end of file |