Author: nickboldt
Date: 2012-10-04 09:52:06 -0400 (Thu, 04 Oct 2012)
New Revision: 44294
Modified:
branches/jbosstools-4.0.0.Alpha2/build/publish/promote.sh
Log:
purge existing workspace folder to ensure we're not combining releases
Modified: branches/jbosstools-4.0.0.Alpha2/build/publish/promote.sh
===================================================================
--- branches/jbosstools-4.0.0.Alpha2/build/publish/promote.sh 2012-10-04 13:51:53 UTC (rev
44293)
+++ branches/jbosstools-4.0.0.Alpha2/build/publish/promote.sh 2012-10-04 13:52:06 UTC (rev
44294)
@@ -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