blob: f466d106e2678a1fe237d4628524055de23e5f56 [file] [log] [blame]
#!/bin/bash
source ./clean-up.sh
{beforeClean}
cd /home/admin/OnosSystemTest/TestON/logs
{cleaning}
cd /var/lib/jenkins/workspace/OnosProdCHOpost
echo "Checking if there are jenkins-logs older than ${DAYS_OLD} days...."
for i in $(find . -mtime +${DAYS_OLD})
do
echo -e "logs older than $DAYS_OLD are: "
echo $i
rm -rf $i
done
{afterClean}