Apex: more fixes for iso verify 63/33563/1
authorTim Rozet <trozet@redhat.com>
Thu, 20 Apr 2017 03:33:25 +0000 (23:33 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 20 Apr 2017 03:33:25 +0000 (23:33 -0400)
Change-Id: Ie1a59806b20072f27adc2f7248c4244e53a5f2bb
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex-iso-verify.sh
jjb/apex/apex.yml

index d80de35..900a3eb 100755 (executable)
@@ -8,6 +8,8 @@ echo "Starting the Apex iso verify."
 echo "--------------------------------------------------------"
 echo
 
+source $BUILD_DIRECTORY/../opnfv.properties
+
 if ! rpm -q virt-install > /dev/null; then
   sudo yum -y install virt-install
 fi
index 248f296..3f5ef5a 100644 (file)
             git-revision: false
             same-node: true
             block: true
-        - 'apex-upload-rpm-artifact'
+        - inject:
+           properties-content: ARTIFACT_TYPE=rpm
+        - 'apex-upload-artifact'
         - trigger-builds:
           - project: 'apex-verify-iso-{stream}'
             predefined-parameters: |
             git-revision: false
             block: true
             same-node: true
-        - 'apex-upload-iso-artifact'
+        - inject:
+           properties-content: ARTIFACT_TYPE=iso
+        - 'apex-upload-artifact'
 
 # ISO verify job
 - job-template:
             same-node: true
         - shell:
             !include-raw-escape: ./apex-snapshot-create.sh
-        - 'apex-upload-snapshot-artifact'
+        - inject:
+           properties-content: ARTIFACT_TYPE=snapshot
+        - 'apex-upload-artifact'
 
 # FDIO promote
 - job-template:
             same-node: true
         - shell:
             !include-raw-escape: ./apex-snapshot-create.sh
-        - 'apex-upload-snapshot-artifact'
+        - inject:
+           properties-content: ARTIFACT_TYPE=snapshot
+        - 'apex-upload-artifact'
 
 - job-template:
     name: 'apex-gs-clean-{stream}'
         - shell:
             !include-raw: ./apex-iso-verify.sh
 
-- builder:
-    name: 'apex-upload-rpm-artifact'
-    builders:
-        - inject:
-           properties-content: ARTIFACT_TYPE=rpm
-           script-content:
-             !include-raw: ./apex-upload-artifact.sh
-
-- builder:
-    name: 'apex-upload-iso-artifact'
-    builders:
-        - inject:
-           properties-content: ARTIFACT_TYPE=iso
-           script-content:
-             !include-raw: ./apex-upload-artifact.sh
 
 - builder:
-    name: 'apex-upload-snapshot-artifact'
+    name: 'apex-upload-artifact'
     builders:
-        - inject:
-           properties-content: ARTIFACT_TYPE=snapshot
-           script-content:
-             !include-raw: ./apex-upload-artifact.sh
+        - shell:
+            !include-raw: ./apex-upload-artifact.sh
 
 - builder:
     name: 'apex-gs-cleanup'