Enable system stats for archive-build macro 81/44381/2
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 19 Aug 2016 06:37:17 +0000 (16:37 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 22 Aug 2016 03:36:09 +0000 (13:36 +1000)
Change-Id: I828ff5053d6957e54362ecb50616ba0bdd790046
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/include-raw-deploy-archives.sh

index ef446712c4d4b36f97a7b2aa0b762035c9df3e26..c6e5316a1196bb3a6d2c0f498437ddf53d2805b9 100644 (file)
@@ -74,6 +74,17 @@ touch $ARCHIVES_DIR/_build-details.txt
 echo "build-url: ${{BUILD_URL}}" >> $ARCHIVES_DIR/_build-details.txt
 env > $ARCHIVES_DIR/_build-enviroment-variables.txt
 
+# capture system info
+touch $ARCHIVES_DIR/_sys-info.txt
+{{
+    echo -e "uname -a:\n `uname -a` \n"
+    echo -e "df -h:\n `df -h` \n"
+    echo -e "free -m:\n `free -m` \n"
+    echo -e "nproc:\n `nproc` \n"
+    echo -e "lscpu:\n `lscpu` \n"
+    echo -e "ip addr:\n  `/sbin/ip addr` \n"
+}} 2>&1 | tee -a $ARCHIVES_DIR/_sys-info.txt
+
 # Magic string used to trim console logs at the appropriate level during wget
 echo "-----END_OF_BUILD-----"
 wget -O $ARCHIVES_DIR/_console-output.log ${{BUILD_URL}}consoleText