summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien <zhang.jun3g@zte.com.cn>2017-02-22 14:12:46 +0800
committerJulien <zhang.jun3g@zte.com.cn>2017-02-22 14:13:36 +0800
commit17b2e2950dab71873bde18c8d6ead6267176780c (patch)
tree9fd65038d4700303521962136868c76842b0dcfa
parent9193d235dc58e25639f093adab9fb903e6068456 (diff)
Add coverage support
Add publish-coverage macro and used in qtip JIRA:QTIP-204 Change-Id: Ic0a0ca5f082bcaf10074b6312debd8549f99d065 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
-rw-r--r--jjb/global/releng-macros.yml20
-rw-r--r--jjb/qtip/qtip-verify-jobs.yml2
2 files changed, 22 insertions, 0 deletions
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml
index d5eb0c974..c245ee813 100644
--- a/jjb/global/releng-macros.yml
+++ b/jjb/global/releng-macros.yml
@@ -459,3 +459,23 @@
allow-empty: true
fingerprint: true
latest-only: true
+
+- publisher:
+ name: publish-coverage
+ publishers:
+ - 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
+
diff --git a/jjb/qtip/qtip-verify-jobs.yml b/jjb/qtip/qtip-verify-jobs.yml
index d1fc34d11..3cb331c1f 100644
--- a/jjb/qtip/qtip-verify-jobs.yml
+++ b/jjb/qtip/qtip-verify-jobs.yml
@@ -55,6 +55,8 @@
builders:
- qtip-unit-tests-and-docs-build
+ publisher:
+ - 'publish-coverage'
################################
## job builders