BUILD_LOC="/home/data/httpd/download.eclipse.org/sketch" # where you will have your promotion logs PROMO_LOGS_DIR="" # this script log logFile="publish.log" rm -f $logFile echo "[`date +%Y/%m/%d\ %H:%M`]: getting last successful build" >> $logFile mkdir -p $BUILD_LOC rm -f $BUILD_LOC/site.zip rm -rf $BUILD_LOC/build cd $BUILD_LOC wget --no-check-certificate "https://hudson.eclipse.org/hudson/job/sketch/lastSuccessfulBuild/artifact/org.eclipse.sketch.site/target/site/*zip*/site.zip" -o $logFile if [ ! -f site.zip ]; then echo "ERROR:build.zip (from Hudson) not found" >> $logFile; exit -2; fi unzip site.zip >> $logFile rm -Rf updates-nightly mkdir updates-nightly mv -f site/* updates-nightly/ echo "[`date +%Y/%m/%d\ %H:%M`]: publishing nightly build ..." >> $logFile