aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/release-jjb-flounder-sources
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/release-jjb-flounder-sources')
-rw-r--r--jjb/release-jjb-flounder-sources/include-release-jjb-release-sources-rsync.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/jjb/release-jjb-flounder-sources/include-release-jjb-release-sources-rsync.sh b/jjb/release-jjb-flounder-sources/include-release-jjb-release-sources-rsync.sh
index c52387cf..e458a17d 100644
--- a/jjb/release-jjb-flounder-sources/include-release-jjb-release-sources-rsync.sh
+++ b/jjb/release-jjb-flounder-sources/include-release-jjb-release-sources-rsync.sh
@@ -28,9 +28,12 @@ mkdir -p ../UPLOAD/
cp -ar agl-${RELEASE_BRANCH}-${RELEASE_VERSION}.* ../UPLOAD/
export RSYNCSRC=$(pwd)/../UPLOAD
-export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/release/${RELEASE_BRANCH}/"
+export RSYNCDST="/srv/download/AGL/release/${RELEASE_BRANCH}/"
if test x"yes" = x"${UPLOAD}" ; then
+ set +x
ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 "mkdir -p ${RSYNCDST}"
- rsync -avr -e "ssh -o StrictHostKeyChecking=no" ${RSYNCSRC}/* ${RSYNCDST}
-fi
+ rsync -avr -e "ssh -o StrictHostKeyChecking=no" ${RSYNCSRC}/* jenkins-slave@10.30.72.8:${RSYNCDST}
+ ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 "rm -rf ${RSYNCDST}/latest"
+ ssh -o StrictHostKeyChecking=no jenkins-slave@10.30.72.8 "ln -sf ${RELEASE_VERSION} ${RSYNCDST}/latest"
+fi \ No newline at end of file