From 433a54eddebf95febcd35cc9f590935bc511809c Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 29 Sep 2017 16:44:18 -0300 Subject: Send RELEASE to internal server --- tools/builder_defaults.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/builder_defaults.sh b/tools/builder_defaults.sh index 444b565..aa51b13 100644 --- a/tools/builder_defaults.sh +++ b/tools/builder_defaults.sh @@ -326,9 +326,15 @@ export VARIANTIMAGES="" export VARIANTUPDATES="" # Rsync data to send snapshots -export RSYNCIP=${RSYNCIP:-"nfs1.nyi.netgate.com"} -export RSYNCUSER=${RSYNCUSER:-"wwwsync"} -export RSYNCPATH=${RSYNCPATH:-"/storage/files/snapshots/${TARGET}/${PRODUCT_NAME}_${GIT_REPO_BRANCH_OR_TAG}"} +if [ -n "${_IS_RELEASE}" ]; then + export RSYNCIP=${RSYNCIP:-"release-staging.netgate.com"} + export RSYNCUSER=${RSYNCUSER:-"wwwsync"} + export RSYNCPATH=${RSYNCPATH:-"/storage/ce"} +else + export RSYNCIP=${RSYNCIP:-"nfs1.nyi.netgate.com"} + export RSYNCUSER=${RSYNCUSER:-"wwwsync"} + export RSYNCPATH=${RSYNCPATH:-"/storage/files/snapshots/${TARGET}/${PRODUCT_NAME}_${GIT_REPO_BRANCH_OR_TAG}"} +fi export SNAPSHOTSLOGFILE=${SNAPSHOTSLOGFILE:-"${SCRATCHDIR}/snapshots-build.log"} export SNAPSHOTSLASTUPDATE=${SNAPSHOTSLASTUPDATE:-"${SCRATCHDIR}/snapshots-lastupdate.log"} -- cgit v1.1