blob: 5feaeb13e2114f806f4aa88bb0619ec570823f7c (
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
30
31
32
33
34
35
|
#!/bin/bash
#set -x
set -e
echo -e "\n\n\n"
echo "#########################################"
echo -e "\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 UPLOAD/${TARGETARCH} || true
mkdir -p UPLOAD/${TARGETARCH}
export DEST=$(pwd)/UPLOAD/${TARGETARCH}
pushd ${MYPROJECT}
pwd
ls -alh
ls
ls package || true
cp package/*.wgt $DEST
ls -alh $DEST
LANG=C tree $RSYNCSRC
popd
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
|