Apex: Fix functest docker tag passing for gate 41/65741/1
authorTim Rozet <trozet@redhat.com>
Tue, 11 Dec 2018 17:17:27 +0000 (12:17 -0500)
committerTim Rozet <trozet@redhat.com>
Tue, 11 Dec 2018 17:17:27 +0000 (12:17 -0500)
The daily job moved to using the apex-functest-scenario script. This
updates the gate jobs to use the same logic as well as updates the
detection script to drop snapshot specific extensions like functest/csit
which Apex uses to determine special deploy types.

Change-Id: Id5f23d71401fc341c640b388f583b304b2ac6789
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex-functest-scenario.sh
jjb/apex/apex-verify-jobs.yaml

index dcbed44..f1cb74e 100644 (file)
@@ -11,7 +11,7 @@ elif [[ "$features" =~ 'rocky' ]]; then
   functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/(os-.+?)-(.+)_rocky-(noha|ha)/\1-\2-\3/p')
   echo "DOCKER_TAG=hunter" > functest_scenario
 else
-  functest_scenario=$DEPLOY_SCENARIO
+  functest_scenario=$(echo $DEPLOY_SCENARIO | sed -r -n 's/-(noha|ha).*/-\1/p')
   echo "DOCKER_TAG=$([[ ${BRANCH##*/} == "master" ]] && \
     echo "latest" || echo ${BRANCH##*/})" > functest_scenario
 fi
index c10a783..a61d9fd 100644 (file)
               kill-phase-on: FAILURE
               abort-all-job: true
               git-revision: true
-      - shell: |
-          features=$(echo $DEPLOY_SCENARIO | sed -r -n 's/os-.+-(.+)-(noha|ha)/\1/p')
-          if [ "$features" == 'rocky' ]; then
-            echo "DOCKER_TAG=hunter" > functest_tag
-          elif [[ "$features" =~ 'rocky' ]]; then
-            echo "DOCKER_TAG=hunter" > functest_tag
-          else
-            echo "DOCKER_TAG=''" > functest_tag
-          fi
+      - shell:
+          !include-raw-escape: ./apex-functest-scenario.sh
       - inject:
           properties-file: functest_tag
           override-build-parameters: true