Adding coverage report to merge job
[releng.git] / jjb / storperf / storperf.yml
index 681541d..c58f9ef 100644 (file)
@@ -16,9 +16,7 @@
 - job-template:
     name: 'storperf-verify-{stream}'
 
-    node: ericsson-build
-
-    project-type: freestyle
+    node: opnfv-build
 
     logrotate:
         daysToKeep: 30
             refspec: '$GERRIT_REFSPEC'
             choosing-strategy: 'gerrit'
 
-    wrappers:
-        - ssh-agent-credentials:
-            user: '{ssh-credentials}'
-
     triggers:
         - gerrit:
             trigger-on:
@@ -69,7 +63,6 @@
         - shell: |
             $WORKSPACE/ci/verify.sh
 
-
 - job-template:
     name: 'storperf-merge-{stream}'
 
     #
     # This job's purpose is to update all the JJB
 
-    node: ericsson-build
-
-    project-type: freestyle
-
-    logrotate:
-        daysToKeep: 30
-        numToKeep: 40
-        artifactDaysToKeep: -1
-        artifactNumToKeep: 5
+    node: opnfv-build
 
     parameters:
         - project-parameter:
             refspec: ''
             choosing-strategy: 'default'
 
-    wrappers:
-        - ssh-agent-credentials:
-            user: '{ssh-credentials}'
-
     triggers:
         - gerrit:
             trigger-on:
     publishers:
         - junit:
             results: nosetests.xml
-
+        - cobertura:
+            report-file: "coverage.xml"
+            only-stable: "true"
+            health-auto-update: "true"
+            stability-auto-update: "true"
+            zoom-coverage-chart: "true"
+            targets:
+                - files:
+                    healthy: 10
+                    unhealthy: 20
+                    failing: 30
+                - method:
+                    healthy: 50
+                    unhealthy: 40
+                    failing: 30
 
 - job-template:
     name: 'storperf-daily-{stream}'
     # Required Variables:
     #     stream:    branch with - in place of / (eg. stable)
     #     branch:    branch (eg. stable)
-    node: ericsson-build
+    node: opnfv-build
 
     disabled: true
 
-    project-type: freestyle
-
-    logrotate:
-        daysToKeep: '{build-days-to-keep}'
-        numToKeep: '{build-num-to-keep}'
-        artifactDaysToKeep: '{build-artifact-days-to-keep}'
-        artifactNumToKeep: '{build-artifact-num-to-keep}'
-
     parameters:
         - project-parameter:
             project: '{project}'
             refspec: ''
             branch: '{branch}'
 
-    wrappers:
-        - ssh-agent-credentials:
-            user: '{ssh-credentials}'
-
     triggers:
         - timed: 'H H * * *'