Add an option to skip all cleanup with $SKIP_CLEANUP
#
# Globals:
# - ARTIFACT_DIR
+# - SKIP_CLEANUP
# - SKIP_TEARDOWN
# - SKIP_IMAGE_CLEANUP
# Arguments:
# Returns:
# None
function os::cleanup::all() {
+ if [[ -n "${SKIP_CLEANUP:-}" ]]; then
+ os::log::warning "[CLEANUP] Skipping cleanup routines..."
+ return 0
+ fi
+
# All of our cleanup is best-effort, so we do not care
# if any specific step fails.
set +o errexit
