aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-31 02:16:58 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2017-05-31 02:16:58 +0200
commit23bba586d4b651cfbe541d40c4119a4c0737b2d0 (patch)
tree14b72410771aa75bc78c6fff2899185ad32c94f5
parente282b61ffa7c8a7f465d9893d610fa329785785e (diff)
Fix typo and upload mechanism
Change-Id: I4e7494eec84102cc59fe917b01193ff0bdc8b893 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
-rw-r--r--jjb/release-jjb-chinook-release/include-release-jjb-chinook-release-move-sandbox.sh2
-rw-r--r--jjb/release-jjb-dab-snapshot/include-release-jjb-dab-snapshot-rsync.sh8
2 files changed, 6 insertions, 4 deletions
diff --git a/jjb/release-jjb-chinook-release/include-release-jjb-chinook-release-move-sandbox.sh b/jjb/release-jjb-chinook-release/include-release-jjb-chinook-release-move-sandbox.sh
index 536f726b..396dfb1c 100644
--- a/jjb/release-jjb-chinook-release/include-release-jjb-chinook-release-move-sandbox.sh
+++ b/jjb/release-jjb-chinook-release/include-release-jjb-chinook-release-move-sandbox.sh
@@ -14,7 +14,7 @@ if test x"" = x"${RELEASE_VERSION}"; then
fi
-export REMOTESRC="/src/download/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}/"
+export REMOTESRC="/srv/download/AGL/upload/ci/${RELEASE_BRANCH}/${RELEASE_VERSION}/"
export REMOTEDST="/srv/download/AGL/release/${RELEASE_BRANCH}/${RELEASE_VERSION}/"
if test x"yes" = x"$UPLOAD" ; then
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