Author: nickboldt
Date: 2012-10-04 09:51:53 -0400 (Thu, 04 Oct 2012)
New Revision: 44293
Modified:
trunk/build/publish/promote.sh
Log:
purge existing workspace folder to ensure we're not combining releases
Modified: trunk/build/publish/promote.sh
===================================================================
--- trunk/build/publish/promote.sh 2012-10-04 13:30:00 UTC (rev 44292)
+++ trunk/build/publish/promote.sh 2012-10-04 13:51:53 UTC (rev 44293)
@@ -37,6 +37,8 @@
if [[ ${OPERATION} == "MOVE" ]]; then
echo -e "rename builds/staging/${SOURCE_PATH}
updates/${BUILD_TYPE}/${TARGET_PLATFORM}/${PARENT_FOLDER}/${PROJECT_NAME}/${TARGET_FOLDER}"
| sftp ${DESTINATION}
else
+ # purge existing workspace folder to ensure we're not combining releases
+ if [[ ${WORKSPACE} ]] && [[ -d ${WORKSPACE}/${JOB_NAME} ]]; then rm -fr
${WORKSPACE}/${JOB_NAME}/; fi
rsync -arzq --protocol=28 ${DESTINATION}/builds/staging/${SOURCE_PATH}/*
${WORKSPACE}/${JOB_NAME}/
rsync -arzq --protocol=28 --delete ${WORKSPACE}/${JOB_NAME}/*
${DESTINATION}/updates/${BUILD_TYPE}/${TARGET_PLATFORM}/${PARENT_FOLDER}/${PROJECT_NAME}/${TARGET_FOLDER}/
fi
Show replies by date