summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2018-06-14 13:04:24 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2018-06-27 12:27:57 (GMT)
commit9ce5edab1735303a7fdf57ec78f638afe2275c5c (patch)
treea7c817949345111032c232460a1746927e962d6a
parentd447aaf59803bd131241a24bc1041dfe702a1415 (diff)
downloadjenkins-lib-wip/publish_coverage_native.zip
jenkins-lib-wip/publish_coverage_native.tar.gz
jenkins-lib-wip/publish_coverage_native.tar.bz2
add a parameter to publish_coverage_native (#24542)wip/publish_coverage_native
-rw-r--r--src/eo/Utils.groovy8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/eo/Utils.groovy b/src/eo/Utils.groovy
index 100a3f2..e647b51 100644
--- a/src/eo/Utils.groovy
+++ b/src/eo/Utils.groovy
@@ -33,10 +33,12 @@ def publish_coverage(report_pattern) {
}
-def publish_coverage_native(report_pattern) {
+def publish_coverage_native(
+ report_pattern = 'index.html', report_dir = 'htmlcov',
+ report_name = 'Coverage Report (native)') {
publishHTML target : [
- allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'htmlcov',
- reportFiles: report_pattern, reportName: 'Coverage Report (native)',reportTitles: ''
+ allowMissing: false, alwaysLinkToLastBuild: false, keepAll: true, reportDir: report_dir,
+ reportFiles: report_pattern, reportName: report_name,reportTitles: ''
]
}