Apex: Fix csit deployments for queens 93/63593/1
authorTim Rozet <trozet@redhat.com>
Tue, 16 Oct 2018 12:59:58 +0000 (08:59 -0400)
committerTim Rozet <trozet@redhat.com>
Tue, 16 Oct 2018 12:59:58 +0000 (08:59 -0400)
With changes to deploy scenario files for gambia, we still need the
logic to pull in the right csit-env. That logic broke as it depended on
DEPLOY_SCENARIO with the changes to scenario names. This patch fixes it
to check openstack version (OS_VERSION) instead.

Change-Id: Ie130efd0fc3cb7f09a3fa4e896ad461d24394777
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex-deploy.sh

index 1bc727d..4876b85 100755 (executable)
@@ -141,8 +141,8 @@ if [[ "$JOB_NAME" =~ "virtual" ]]; then
   fi
 
   if [[ "$PROMOTE" == "True"  || "$CSIT_ENV_FLAG" == "True" ]]; then
-    if [[ "$DEPLOY_SCENARIO" =~ "queens" ]]; then
-      CSIT_ENV="csit-queens-environment.yaml"
+    if [[ "$OS_VERSION" != "master" ]]; then
+      CSIT_ENV="csit-${OS_VERSION}-environment.yaml"
     else
       CSIT_ENV="csit-environment.yaml"
     fi