diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2021-03-25 14:28:04 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2021-03-26 16:02:23 -0400 |
commit | d332b6b464cd1e9e78ee066cfd2af7e0cfc55f66 (patch) | |
tree | c9c5c363dc33f4734cd2b7c6b491c7d6b0875b88 /jjb/scripts/setup_executor_env.sh | |
parent | 50028767df228c92a84796a2ef269da0f058234f (diff) |
Include container id in console log.
- Output executor runtime attributes in
post_build_deploy_archives.sh for the case
when a job fails prior to setup_executor_env.sh
Change-Id: Icb54c039db21a621d44808221a3100c509583090
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'jjb/scripts/setup_executor_env.sh')
-rwxr-xr-x | jjb/scripts/setup_executor_env.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/jjb/scripts/setup_executor_env.sh b/jjb/scripts/setup_executor_env.sh index f6b6480f..d7e7cd25 100755 --- a/jjb/scripts/setup_executor_env.sh +++ b/jjb/scripts/setup_executor_env.sh @@ -26,10 +26,11 @@ long_line="********************************************************************* downloads_cache="/root/Downloads" echo "$long_line" -echo "Executor OS: $OS_ID-$OS_VERSION_ID" -echo "Executor Arch: $OS_ARCH" -# TODO: fix this to print nomad server hostname -echo "Executor hostname: $(grep search /etc/resolv.conf | cut -d' ' -f2 | head -1)" +echo "Executor Runtime Attributes:" +echo "OS: $OS_ID-$OS_VERSION_ID" +echo "Arch: $OS_ARCH" +echo "Nomad Hostname: $(grep search /etc/resolv.conf | cut -d' ' -f2 | head -1)" +echo "Container ID: $(hostname)" echo "$long_line" if [ -f "$dockerfile" ] ; then |