From 0c6f4af97732c263152a9c035b87f1ad506b6911 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 23 Aug 2012 11:39:57 -0700 Subject: [PATCH] Switch to html coverage reports. Change-Id: Id841726e55bb0c8fb9b6a80648e1e3727b8d5a03 Reviewed-on: https://review.openstack.org/11891 Reviewed-by: Clark Boylan Approved: James E. Blair Tested-by: Jenkins --- modules/jenkins/files/slave_scripts/run-cover.sh | 2 ++ .../jenkins_job_builder/config/python-jobs.yaml | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/run-cover.sh b/modules/jenkins/files/slave_scripts/run-cover.sh index 7693a922ed..d0806eacbb 100755 --- a/modules/jenkins/files/slave_scripts/run-cover.sh +++ b/modules/jenkins/files/slave_scripts/run-cover.sh @@ -7,6 +7,8 @@ # what packages we ended up testing. # +export NOSE_COVER_HTML=1 + venv=cover tox -e$venv diff --git a/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml b/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml index fa588d844f..309e7892e9 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml @@ -22,8 +22,16 @@ - coverage publishers: - - coverage - - console-log-post + - scp: + site: 'static.openstack.org' + files: + - target: 'logs/periodic/$JOB_NAME/$BUILD_NUMBER' + source: 'cover/**' + keep-hierarchy: true + copy-after-failure: true + - target: 'logs/periodic/$JOB_NAME/$BUILD_NUMBER' + copy-console: true + copy-after-failure: true node: '{node}'