From 626dcf7820316bf98092fe53c84a35fdf8ca8712 Mon Sep 17 00:00:00 2001 From: Vladimir Khlyunev Date: Fri, 23 Apr 2021 16:39:12 +0400 Subject: [PATCH] Allow to not shutdown lab after test run Change-Id: Idc06cba3161c7e3aea2a80f93bcbcfa6c6f1d2bc --- maintenance-ci/mos/macroses/9x-systest-params.yaml | 4 ++++ maintenance-ci/mos/macroses/post-destroy-vm.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/maintenance-ci/mos/macroses/9x-systest-params.yaml b/maintenance-ci/mos/macroses/9x-systest-params.yaml index 07b98e5..7f5d321 100644 --- a/maintenance-ci/mos/macroses/9x-systest-params.yaml +++ b/maintenance-ci/mos/macroses/9x-systest-params.yaml @@ -10,6 +10,10 @@ name: CLEANUP_ALL_BEFORE_RUN default: false description: "Delete ALL envs before run (for swarm run)" + - bool: + name: SHUTDOWN_LAB_AFTER_RUN + default: true + description: "Run dos.py destroy after build" - string: name: SNAPSHOT_PARAMS_ID default: lastSuccessfulBuild diff --git a/maintenance-ci/mos/macroses/post-destroy-vm.yaml b/maintenance-ci/mos/macroses/post-destroy-vm.yaml index ca67919..18404ac 100644 --- a/maintenance-ci/mos/macroses/post-destroy-vm.yaml +++ b/maintenance-ci/mos/macroses/post-destroy-vm.yaml @@ -9,6 +9,9 @@ #!/bin/bash set -ex + if [[ ! $SHUTDOWN_LAB_AFTER_RUN = true ]] ; then + exit 0 + fi dos_environment_file="${WORKSPACE}/${DOS_ENV_NAME_PROPS_FILE:=.dos_environment_name}" if [ -f $dos_environment_file ] ; then -- 2.45.2