Create initial version of yardstick job for testing on LF POD1 & POD2 19/819/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 15 Jun 2015 06:54:31 +0000 (08:54 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 15 Jun 2015 06:56:00 +0000 (08:56 +0200)
JIRA: YARDSTICK-33

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

index d25d851..cb58a58 100644 (file)
@@ -1,10 +1,15 @@
 - project:
     name: yardstick
     jobs:
+        - 'yardstick-{pod}'
         - 'yardstick-daily-{stream}'
         - 'yardstick-merge'
         - 'yardstick-verify'
 
+    pod:
+        - 'opnfv-jump-1'
+        - 'opnfv-jump-2'
+
     # stream:    branch with - in place of / (eg. stable-helium)
     # branch:    branch (eg. stable/helium)
     stream:
             echo "Running unit tests..."
             cd $WORKSPACE
             ./run_tests.sh
+
+- job-template:
+    name: 'yardstick-{pod}'
+
+    project-type: freestyle
+
+    disabled: true
+
+    node: '{pod}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+
+    scm:
+        - git-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            branch: master
+
+    logrotate:
+        daysToKeep: 30
+        numToKeep: 10
+        artifactDaysToKeep: -1
+        artifactNumToKeep: -1
+
+    builders:
+        - 'yardstick-ping'
+
+########################
+# builder macros
+########################
+- builder:
+    name: yardstick-ping
+    builders:
+        - shell: |
+            #!/bin/bash
+             set -o errexit
+             set -o nounset
+             set -o pipefail
+
+             # TODO: will add real stuff here
+             echo "Hello world!"