Print the hardware details of the CI node at the beginning of the build.
Change-Id: I675d950f687df72f90f89d296b1a68b9207d0f93
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
# Print build env details
print_header "Build environment details"
+print_hardware || true
print_os || true
print_tooling || true
esac
# Print build env details
+print_header "Build environment details"
+print_hardware || true
print_os || true
print_tooling || true
echo -e "${COLOR_BLUE}$1${COLOR_NONE}"
}
+print_hardware() {
+ if command -v lscpu >/dev/null 2>&1; then
+ print_blue "CPU Details"
+ lscpu
+ fi
+
+ print_blue "Memory Details"
+ free
+
+ print_blue "Storage Details"
+ df -H -T
+}
+
print_os() {
set +ex
# Print build env details
print_header "Build environment details"
+print_hardware || true
print_os || true
print_tooling || true
# Print build env details
print_header "Build environment details"
+print_hardware || true
print_os || true
print_tooling || true
# Print build env details
print_header "Build environment details"
+print_hardware || true
print_os || true
print_tooling || true
# Print build env details
print_header "Build environment details"
+print_hardware || true
print_os || true
print_tooling || true