aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/release-jjb-chinook-snapshot/include-release-jjb-chinook-snapshot-rsync.sh
blob: c76d319c92ad6d61e2ed50efbf6769779f821d6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

#set -x
set -e
echo "#######################################"
echo "#######################################"
ls -alh
echo "#######################################"
echo "#######################################"
tree -L 2
echo "#######################################"
echo "#######################################"
set | grep MACHINE
echo "#######################################"
echo "#######################################"
set
echo "#######################################"
echo "#######################################"

export RSYNCSRC="$(pwd)/tmp/deploy/images/"
export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/release/${RELEASE_BRANCH}/${RELEASE_VERSION}/"

echo "would do rsync -avr -e \"ssh -o StrictHostKeyChecking=no\" $RSYNCSRC $RSYNCDST "

if test x"yes" = x"$UPLOAD" ; then
echo upload
fi

exit 0