summaryrefslogtreecommitdiffstats
path: root/jjb/scripts/post_build_executor_info.sh
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2021-04-16 18:33:15 -0400
committerDave Wallace <dwallacelf@gmail.com>2021-05-08 23:48:45 +0000
commitab41eb500db92f8c8ae95a0ec7bd6909542696d9 (patch)
treecebf162e0ea261da51e6b1d4f8b2c2ce3ed11248 /jjb/scripts/post_build_executor_info.sh
parentcfdfb5e6558ea153df9126881935a8a4fb6c5f7e (diff)
Backup console logs to consul.
- Add additional executor info to console output for consul log storage. Change-Id: Ifc9174ff69f26aa31f92e3680606f7a2303b5924 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'jjb/scripts/post_build_executor_info.sh')
-rwxr-xr-xjjb/scripts/post_build_executor_info.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/jjb/scripts/post_build_executor_info.sh b/jjb/scripts/post_build_executor_info.sh
index f3619004..f9866667 100755
--- a/jjb/scripts/post_build_executor_info.sh
+++ b/jjb/scripts/post_build_executor_info.sh
@@ -24,15 +24,23 @@ OS_ARCH=$(uname -m)
echo "$long_line"
echo "Executor Runtime Attributes:"
echo "OS: $OS_ID-$OS_VERSION_ID"
+echo " $(uname -a)"
+echo "Number CPUs: $(nproc)"
echo "Arch: $OS_ARCH"
echo "Nomad Hostname: $(grep search /etc/resolv.conf | cut -d' ' -f2 | head -1)"
echo "Container ID: $(hostname)"
+echo "$long_line"
+echo -e "lscpu:\n$(lscpu)"
+echo "$long_line"
+echo -e "df -h:\n$(df -h)"
+echo "$long_line"
+echo -e "free -m:\n$(free -m)"
if [ -n "$(which ccache)" ] ; then
echo "$long_line"
+ echo "ccache statistics:"
[ -n "${CCACHE_DISABLE:-}" ] && echo "CCACHE_DISABLE = '$CCACHE_DISABLE'"
[ -n "${CCACHE_DIR:-}" ] && echo "CCACHE_DIR = '$CCACHE_DIR'"
- echo "ccache statistics:"
ccache -s
fi