Add --remove-source-files to rsync call 86/50686/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 19 Jan 2017 19:50:57 +0000 (14:50 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 19 Jan 2017 19:52:55 +0000 (14:52 -0500)
Autorelease is running out of space and part of the reason is that we're
duplicating artifacts while copying them around to produce the staging
repo. This is an attempt to save some space by removing some of our
duplication.

Change-Id: I71c02437bf027be765d41c90a4e161c79e97e719
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/include-raw-autorelease-maven-deploy.sh

index 149d87ab676d7b2cc69266ac132bf1101cc2986a..4264fc30649f0c75dbfb400df279b4b59191a874 100644 (file)
@@ -22,7 +22,8 @@ NEXUS_STAGING_URL=${ODLNEXUS_STAGING_URL:-$ODLNEXUSPROXY}
 NEXUS_STAGING_PROFILE=${ODLNEXUS_STAGING_PROFILE:-425e43800fea70}
 NEXUS_STAGING_SERVER_ID=${ODLNEXUS_STAGING_SERVER_ID:-"opendaylight.staging"}
 
-rsync -avz --exclude 'maven-metadata*' \
+rsync -avz --remove-source-files \
+           --exclude 'maven-metadata*' \
            --exclude '_remote.repositories' \
            --exclude 'resolver-status.properties' \
            "stage/org/opendaylight" m2repo/org/