From: Anil Belur Date: Fri, 19 Aug 2016 06:37:17 +0000 (+1000) Subject: Enable system stats for archive-build macro X-Git-Tag: v0.0.6~15 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=6672f8b31522a06a8da3b700de4bd6ac04a112a9;p=releng%2Flftools.git Enable system stats for archive-build macro Change-Id: I828ff5053d6957e54362ecb50616ba0bdd790046 Signed-off-by: Anil Belur Signed-off-by: Thanh Ha --- diff --git a/include-raw-deploy-archives.sh b/include-raw-deploy-archives.sh index ef446712..c6e5316a 100644 --- a/include-raw-deploy-archives.sh +++ b/include-raw-deploy-archives.sh @@ -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