Cleanup stale files in /tmp which is filling up during some runs

Output status of disk and memory on build host
This commit is contained in:
Rafael da Fonseca 2015-06-25 23:12:17 +02:00
parent c0bf00c568
commit c980003c37

View File

@ -49,9 +49,18 @@ javac -version
echo -e "\nMaven Version: "
mvn -v
echo -e "\nDisk Status: "
df
echo -e "\nMemory Status: "
free
echo -e "\nCheck Git status"
git status
echo -e "\nCleaning up stale files in /tmp: "
sudo find /tmp -type f -mtime +2 | grep -v "`sudo lsof | grep /tmp |awk '{print $9}'|sed -e '1 d' |sort |uniq | tr \\n \|`" | xargs sudo rm -vf
echo -e "\nUpdating the system: "
sudo apt-get -q -y update > /dev/null