blob: 9d2a1d08a0b6e650dc5dd93e0e654240794c355b [file] [log] [blame]
Devin Lim49200ec2018-01-19 16:17:41 -08001#!/bin/bash
2
3source ./clean-up.sh
4
5beforeClean
6
7cdTolog admin
8
9cleaning
10
11cd /var/lib/jenkins/workspace/OnosProdCHOpost
12
13echo "Checking if there are jenkins-logs older than ${DAYS_OLD} days...."
14for i in $(find . -mtime +${DAYS_OLD})
15do
16echo -e "logs older than $DAYS_OLD are: "
17echo $i
18rm -rf $i
19done
20
21afterClean