do not upload Apex artifacts when daily fails 71/3771/1
authorDan Radez <dradez@redhat.com>
Mon, 30 Nov 2015 16:52:43 +0000 (11:52 -0500)
committerDan Radez <dradez@redhat.com>
Mon, 30 Nov 2015 16:53:48 +0000 (11:53 -0500)
Change-Id: Id2a4beef1f404d383d081d50d3fca7139659ea95
Signed-off-by: Dan Radez <dradez@redhat.com>
jjb/apex/apex.yml

index 376515b..60554b3 100644 (file)
 
     builders:
         - 'apex-build'
 
     builders:
         - 'apex-build'
-        - 'apex-upload-artifact'
         - 'apex-deploy-virtual'
         - 'apex-deploy-virtual'
+        - 'apex-upload-artifact'
         - 'apex-workspace-cleanup'
 
 ########################
         - 'apex-workspace-cleanup'
 
 ########################
             echo "--------------------------------------------------------"
             echo
 
             echo "--------------------------------------------------------"
             echo
 
-            # check if we got the file
-            if [[ -f opnfv.properties ]]; then
-                # source the file so we get OPNFV vars
-                source opnfv.properties
-                RPM_INSTALL_PATH=build_output/$(basename $OPNFV_RPM_URL)
-            else
-                # get the latest.properties file in order to get info regarding latest artifact
-                curl -s -o $WORKSPACE/opnfv.properties http://$GS_URL/latest.properties
-                [[ -f opnfv.properties ]] || exit 1
-
-                # source the file so we get OPNFV vars
-                source opnfv.properties
-                RPM_INSTALL_PATH=$RPM_URL
-            fi
+            # source the file so we get OPNFV vars
+            source opnfv.properties
+            RPM_INSTALL_PATH=build_output/$(basename $OPNFV_RPM_URL)
 
             # update / install the new rpm
             if rpm -q opnfv-apex > /dev/null; then
 
             # update / install the new rpm
             if rpm -q opnfv-apex > /dev/null; then