Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2015-09-13 01:44:08 +0000
committerDavid Williams2015-09-13 01:44:08 +0000
commit07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60 (patch)
treeb43f84589feab0579c28eed88c84e79569df675f /production/sdk/cleaners
parentc0d9d0a97a9544c3c71b21bf6590dd6ae57a807f (diff)
downloadeclipse.platform.releng.aggregator-07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60.tar.gz
eclipse.platform.releng.aggregator-07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60.tar.xz
eclipse.platform.releng.aggregator-07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60.zip
Bug 377594 - need systematic, automatic?, method to cleanup build/drops
Diffstat (limited to 'production/sdk/cleaners')
-rwxr-xr-xproduction/sdk/cleaners/cleanupNightlyRepo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/production/sdk/cleaners/cleanupNightlyRepo.sh b/production/sdk/cleaners/cleanupNightlyRepo.sh
index b71ae6ef2..7c3531e3f 100755
--- a/production/sdk/cleaners/cleanupNightlyRepo.sh
+++ b/production/sdk/cleaners/cleanupNightlyRepo.sh
@@ -72,8 +72,8 @@ function getReposToRemove ()
else
# for "repo names" we want only the last segment of the directory, so use -printf %f. The %C@ is seconds since the beginning of time, for sorting.
# 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?!
- # TODO: I need to understand this better.
+ # 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?
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