apex: fixes scm, build directory confusion 19/6919/1
authorTim Rozet <trozet@redhat.com>
Fri, 15 Jan 2016 21:49:56 +0000 (16:49 -0500)
committerTim Rozet <trozet@redhat.com>
Fri, 15 Jan 2016 21:49:56 +0000 (16:49 -0500)
Change-Id: I1a6320380356817ccd3aead6a38b6c77c670ff08
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex.yml

index 306859b..c1e0f46 100644 (file)
         - trigger-builds:
           - project: 'apex-deploy-virtual-os-odl_l2-nofeature-ha-{stream}'
             predefined-parameters:
-              DEPLOY_SCENARIO="os-odl_l2-nofeature-ha"
-            git-revision: true
+              BUILD_DIRECTORY=apex-verify-master
+            git-revision: false
             block: true
         - trigger-builds:
           - project: 'apex-deploy-virtual-os-onos-nofeature-ha-{stream}'
             predefined-parameters:
-              DEPLOY_SCENARIO="os-onos-nofeature-ha"
-            git-revision: true
+              BUILD_DIRECTORY=apex-verify-master
+            git-revision: false
             block: true
         - 'apex-workspace-cleanup'
 
                 # specific artifact from artifacts.opnfv.org
                 RPM_INSTALL_PATH=$GS_URL/$ARTIFACT_NAME
             else
-                if [[ -f opnfv.properties ]]; then
+                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
-                    source opnfv.properties
-                    RPM_INSTALL_PATH=build_output/$(basename $OPNFV_RPM_URL)
+                    source ${BUILD_DIRECTORY}/../opnfv.properties
+                    RPM_INSTALL_PATH=${BUILD_DIRECTORY}/$(basename $OPNFV_RPM_URL)
                 else
                     # no opnfv.properties means use the latest from artifacts.opnfv.org
                     # get the latest.properties to get the link to the latest artifact
                 fi
             fi
 
-            source opnfv.properties
-            RPM_INSTALL_PATH=build_output/$(basename $OPNFV_RPM_URL)
-            if [ ! -e "$RPM_INSTALL_PATH" ]; then
-               RPM_INSTALL_PATH=http://${OPNFV_RPM_URL}
-            fi
-
             RPM_LIST=$RPM_INSTALL_PATH
             for pkg in common undercloud; do
                 RPM_LIST+=" ${RPM_INSTALL_PATH/opnfv-apex/opnfv-apex-${pkg}}"