Integrate fetch-os-creds.sh to yardstick 33/933/6
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Tue, 30 Jun 2015 21:21:59 +0000 (23:21 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 1 Jul 2015 08:52:46 +0000 (08:52 +0000)
JIRA: YARDSTICK-33

Change-Id: I1fe483ff7dc30354f81657738c1ba9d2f51b3661
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/yardstick/yardstick.yml

index 9334cd9..5848b1b 100644 (file)
@@ -7,8 +7,14 @@
         - 'yardstick-verify'
 
     pod:
-        - 'opnfv-jump-1'
-        - 'opnfv-jump-2'
+        - opnfv-jump-1:
+            node: 'opnfv-jump-1'
+            installer_type: 'fuel'
+            installer_ip: '10.20.0.2'
+        - opnfv-jump-2:
+            node: 'opnfv-jump-2'
+            installer_type: 'foreman'
+            installer_ip: '172.30.10.73'
 
     # stream:    branch with - in place of / (eg. stable-helium)
     # branch:    branch (eg. stable/helium)
 
     disabled: false
 
-    node: '{pod}'
+    node: '{node}'
 
     parameters:
         - project-parameter:
             project: '{project}'
+        - string:
+            name: INSTALLER_TYPE
+            default: '{installer_type}'
+            description: "Installer name that is used for deployment."
+        - string:
+            name: INSTALLER_IP
+            default: '{installer_ip}'
+            description: "Installer IP."
 
     scm:
         - git-scm:
         artifactNumToKeep: -1
 
     builders:
+        - 'fetch-os-creds'
         - 'yardstick-ping'
 
 ########################
             echo "Yardstick: prepare Yardstick environment"
 
             # source openstack vars
-            source $HOME/yardstick/opnfv-openrc.sh
+            if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
+                echo "Unable to access file $HOME/opnfv-openrc.sh"
+                exit 1
+            fi
+            source $HOME/opnfv-openrc.sh
 
             # check if cirros-0.3.3 image is already available
             # if not, create the image
 
             # done
             echo "Yardstick: done!"
+
+- builder:
+    name: fetch-os-creds
+    builders:
+        - shell: |
+            !include-raw ../../utils/fetch_os_creds.sh