From: Vladimir Khlyunev Date: Fri, 23 Apr 2021 12:39:12 +0000 (+0400) Subject: Allow to not shutdown lab after test run X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=626dcf7820316bf98092fe53c84a35fdf8ca8712;p=tools%2Fsustaining.git Allow to not shutdown lab after test run Change-Id: Idc06cba3161c7e3aea2a80f93bcbcfa6c6f1d2bc --- 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