Enable InfluxDB reporting for Yardstick on baremetal

Change-Id: I1bb74f445ff25204f85a96f95e39486b244bf4e2
diff --git a/jjb/cloud-infra/cloud-infra-periodic-engine.yaml b/jjb/cloud-infra/cloud-infra-periodic-engine.yaml
index 5cf2eac..8bddd1f 100644
--- a/jjb/cloud-infra/cloud-infra-periodic-engine.yaml
+++ b/jjb/cloud-infra/cloud-infra-periodic-engine.yaml
@@ -62,8 +62,10 @@
     type:
       - virtual:
           slave-label: 'vpod-deploy-city'
+          yardstick-dispatcher: 'file'
       - baremetal:
           slave-label: 'baremetal-deploy'
+          yardstick-dispatcher: 'influxdb'
 
     phase:
       - deploy:
@@ -128,6 +130,10 @@
           default: 'smoke'
           description: 'Test suite to run'
       - string:
+          name: YARDSTICK_DISPATCHER
+          default: '{yardstick-dispatcher}'
+          description: 'Dispatcher to use for Yardstick reporting'
+      - string:
           name: CLEANUP
           default: 'true'
           description: 'Cleanup leftovers of the previous run'
@@ -208,6 +214,7 @@
                 DEPLOY_TYPE=$DEPLOY_TYPE
                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
                 TEST_SUITE=$TEST_SUITE
+                YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
                 CLEANUP=$CLEANUP
               node-parameters: true
               kill-phase-on: NEVER
@@ -272,6 +279,10 @@
           default: 'https://gerrit.nordix.org/infra/test.git'
           description: 'URL to Nordix Cloud Infra test repository'
       - string:
+          name: YARDSTICK_DISPATCHER
+          default: 'file'
+          description: 'Dispatcher to use for Yardstick reporting'
+      - string:
           name: CLEANUP
           default: 'false'
 
diff --git a/jjb/cloud-infra/cloud-infra-test.sh b/jjb/cloud-infra/cloud-infra-test.sh
index 2b85f0d..d74f47a 100644
--- a/jjb/cloud-infra/cloud-infra-test.sh
+++ b/jjb/cloud-infra/cloud-infra-test.sh
@@ -30,6 +30,6 @@
 
 # execute cloud engine test.sh script with arguments
 cd $WORKSPACE
-./test/test.sh -c -f $TEST_FW -t $TEST_SUITE -s $DEPLOY_SCENARIO
+./test/test.sh -c -f $TEST_FW -t $TEST_SUITE -s $DEPLOY_SCENARIO -d $YARDSTICK_DISPATCHER
 
 # vim: set ts=2 sw=2 expandtab: