Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2015-09-13 02:00:11 +0000
committerDavid Williams2015-09-13 02:00:11 +0000
commita3cf5e49140d763ed23fa5d8fbd007c377c3f1d6 (patch)
tree006b92e276ae3f7ba4d0aeae243a30c9b62d3b75 /production/sdk/cleaners/cleanupNightlyRepo.sh
parent27a05dca7199a6aa7b581d3bd06e1dc2ee331f49 (diff)
downloadeclipse.platform.releng.aggregator-a3cf5e49140d763ed23fa5d8fbd007c377c3f1d6.tar.gz
eclipse.platform.releng.aggregator-a3cf5e49140d763ed23fa5d8fbd007c377c3f1d6.tar.xz
eclipse.platform.releng.aggregator-a3cf5e49140d763ed23fa5d8fbd007c377c3f1d6.zip
Bug 377594 - need systematic, automatic?, method to cleanup build/drops
Diffstat (limited to 'production/sdk/cleaners/cleanupNightlyRepo.sh')
-rwxr-xr-xproduction/sdk/cleaners/cleanupNightlyRepo.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/production/sdk/cleaners/cleanupNightlyRepo.sh b/production/sdk/cleaners/cleanupNightlyRepo.sh
index dcd03fd14..36b541434 100755
--- a/production/sdk/cleaners/cleanupNightlyRepo.sh
+++ b/production/sdk/cleaners/cleanupNightlyRepo.sh
@@ -74,6 +74,7 @@ function getReposToRemove ()
# Some caution is needed here. Seems on eclipse.org "atime" is the one that reflects "when created",
# whereas ctime and mtime are all identical, in every directory?! Turns out, mine is that
# say too. Apparently p2 "touches" every directory, for some reason. Perhaps only in the "atomic" case?
+ # But, atime can vary from system to system, depending .. some systems do update, when accessed?
sortedallOldRepos=( $(find ${cDir} -maxdepth 1 -type d -atime +3 -name "${buildType}" -printf "%C@ %f\n" | sort -n | cut -d\ -f2 ) )
nOldRepos=${#sortedallOldRepos[@]}
# all builds "find" command should match above, except for age related (and printf) arguments

Back to the top