apex: fixes BUILD_DIRECTORY with verify 27/6927/1
authorTim Rozet <trozet@redhat.com>
Sat, 16 Jan 2016 02:47:14 +0000 (21:47 -0500)
committerTim Rozet <trozet@redhat.com>
Sat, 16 Jan 2016 02:47:14 +0000 (21:47 -0500)
Change-Id: I41a0ff693403fe3262cd5d8262b27b79ce050977
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex.yml

index 8e2f511..22817dd 100644 (file)
             block: true
         - trigger-builds:
           - project: 'apex-deploy-baremetal-os-odl_l2-nofeature-ha-{stream}'
-            predefined-parameters:
-              DEPLOY_SCENARIO="os-odl_l2-nofeature-ha"
             git-revision: true
             block: true
         - trigger-builds:
                 # specific artifact from artifacts.opnfv.org
                 RPM_INSTALL_PATH=$GS_URL/$ARTIFACT_NAME
             else
+                if [[ $BUILD_DIRECTORY == *verify* ]]; then
+                  BUILD_DIRECTORY=$WORKSPACE/../$BUILD_DIRECTORY
+                  echo "BUILD DIRECTORY modified to $BUILD_DIRECTORY"
+                fi
+
                 if [[ -f ${BUILD_DIRECTORY}/../opnfv.properties ]]; then
                     # if opnfv.properties exists then use the
                     # local build. Source the file so we get local OPNFV vars