diff options
Diffstat (limited to 'jjb/common/include-apps-rsync-download-changeid.sh')
-rw-r--r-- | jjb/common/include-apps-rsync-download-changeid.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/jjb/common/include-apps-rsync-download-changeid.sh b/jjb/common/include-apps-rsync-download-changeid.sh index 5feaeb13..8a9129a1 100644 --- a/jjb/common/include-apps-rsync-download-changeid.sh +++ b/jjb/common/include-apps-rsync-download-changeid.sh @@ -13,9 +13,15 @@ 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} +if test x"" = x"${AGLBRANCH}" ; then + rm -rf UPLOAD/${TARGETARCH} || true + mkdir -p UPLOAD/${TARGETARCH} + export DEST=$(pwd)/UPLOAD/${TARGETARCH} +else + rm -rf UPLOAD/${AGLBRANCH}/${TARGETARCH} || true + mkdir -p UPLOAD/${AGLBRANCH}/${TARGETARCH} + export DEST=$(pwd)/UPLOAD/${AGLBRANCH}/${TARGETARCH} +fi pushd ${MYPROJECT} pwd |