Skip to content

Commit

Permalink
JBDS-3208 when calling jbosstools-cleanup.sh, purge more stuff and be…
Browse files Browse the repository at this point in the history
… more efficient with the cleanup (only clean this job's leftovers)
  • Loading branch information
nickboldt committed Mar 12, 2015
1 parent cae60b2 commit 1b0f6ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion publish/rsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ fi
# for published builds on download.jboss.org ONLY!
# regenerate http://download.jboss.org/jbosstools/builds/${TARGET_PATH}/composite*.xml files for up to 5 builds, cleaning anything older than 5 days old
if [[ ${TARGET_PATH/builds/} != ${TARGET_PATH} ]] && [[ ${DESTINATION} = "tools@filemgmt.jboss.org:/downloads_htdocs/tools" ]] && [[ -f ${WORKSPACE}/sources/util/cleanup/jbosstools-cleanup.sh ]]; then
# given mars/snapshots/builds/jbosstools-build-sites.aggregate.earlyaccess-site_master return mars/snapshots/builds
PARENT_PARENT_PATH=$(echo $PARENT_PATH | sed -e "s#\(.\+\)/[^/]\+#\1#")
chmod +x ${WORKSPACE}/sources/util/cleanup/jbosstools-cleanup.sh
${WORKSPACE}/sources/util/cleanup/jbosstools-cleanup.sh -d ${PARENT_PARENT_PATH} --no-subdirs --childFolderSuffix /all/repo/ --keep 5 --age-to-delete 5
# given above, ${PARENT_PATH#${PARENT_PARENT_PATH}/} returns last path segment jbosstools-build-sites.aggregate.earlyaccess-site_master
${WORKSPACE}/sources/util/cleanup/jbosstools-cleanup.sh -k 2 -a 2 -S /all/repo/ -d ${PARENT_PARENT_PATH} -i ${PARENT_PATH#${PARENT_PARENT_PATH}/}
fi

wgetParams="--timeout=900 --wait=10 --random-wait --tries=10 --retry-connrefused --no-check-certificate -q"
Expand Down

0 comments on commit 1b0f6ec

Please sign in to comment.