[ -d $collectdir ] && max_age=$max_age_def
mkdir -p $collectdir
# list logs older than 24h, to avoid new live files
-logfiles=`find $jhome/jobs -type f $min_age $max_age -name log`
+#logfiles=`find $jhome/jobs -type f $min_age $max_age -name log`
+logfiles=`find $jhome/jobs -type f -name log`
for logfile in $logfiles; do
jobdir=`echo $logfile | sed 's/\/log$//'`
shortname=`echo $jobdir | sed 's/^\/var\/lib\/jenkins\/jobs\///; s/configurations\/axis-label\///; s/\/builds\//\//; s/\//-/g'`
# already existing stored log happens often, so check it first
- [ -f $collectdir/$shortname.*.log.xz ] && continue
+ [ -f $collectdir/$shortname.*log.xz ] && continue
# job dir gone away (by jenkins) may happen, but not often, so check it next
[ ! -d $jobdir ] && continue
jobid=`basename $jobdir`