mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	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:
		
							parent
							
								
									c0bf00c568
								
							
						
					
					
						commit
						c980003c37
					
				| @ -49,9 +49,18 @@ javac -version | |||||||
| echo -e "\nMaven Version: " | echo -e "\nMaven Version: " | ||||||
| mvn -v | mvn -v | ||||||
| 
 | 
 | ||||||
|  | echo -e "\nDisk Status: " | ||||||
|  | df | ||||||
|  | 
 | ||||||
|  | echo -e "\nMemory Status: " | ||||||
|  | free | ||||||
|  | 
 | ||||||
| echo -e "\nCheck Git status" | echo -e "\nCheck Git status" | ||||||
| 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: " | echo -e "\nUpdating the system: " | ||||||
| sudo apt-get -q -y update > /dev/null | sudo apt-get -q -y update > /dev/null | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user