]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Allow to not shutdown lab after test run 19/41719/5
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Fri, 23 Apr 2021 12:39:12 +0000 (16:39 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Fri, 23 Apr 2021 12:43:45 +0000 (16:43 +0400)
Change-Id: Idc06cba3161c7e3aea2a80f93bcbcfa6c6f1d2bc

maintenance-ci/mos/macroses/9x-systest-params.yaml
maintenance-ci/mos/macroses/post-destroy-vm.yaml

index 07b98e58fa3830cbe2c02c973ce66d815ce49b6f..7f5d3218dbba2b518c29531ddd127d5cd73cf173 100644 (file)
         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
index ca67919d1740b38d5baaf4756811c231f6e6a1b9..18404ac2845079a4b67094f1502f71554c092a50 100644 (file)
@@ -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