Apex: Correct functest container with snapshot 27/60127/1
authorTim Rozet <trozet@redhat.com>
Mon, 23 Jul 2018 16:39:10 +0000 (12:39 -0400)
committerTim Rozet <trozet@redhat.com>
Mon, 23 Jul 2018 16:39:10 +0000 (12:39 -0400)
If OS_VERSION is master we want to pull ollivier containers, otherwise
we can pull OPNFV.

Change-Id: I6e838a85c6b7918540c8bc3ca2d5e790e5aa7a57
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/3rd_party_ci/odl-netvirt.yaml

index 367568a..4453ee2 100644 (file)
               node-parameters: true
               kill-phase-on: NEVER
               abort-all-job: false
+      - shell: |
+          if echo $OS_VERSION | grep queens &> /dev/null; then
+          echo 'REPO=opnfv' > functest_repo
+          else
+          echo 'REPO=ollivier' > functest_repo
+          fi
+      - inject:
+          properties-file: functest_repo
       - multijob:
           name: functest
           condition: SUCCESSFUL
                 FUNCTEST_MODE=testcase
                 FUNCTEST_SUITE_NAME=tempest_smoke
                 RC_FILE_PATH=$HOME/cloner-info/overcloudrc
+                REPO=$REPO
               node-parameters: true
               kill-phase-on: FAILURE
               abort-all-job: false