From 34cdef195bc01287a1d07936126d118873b3f34b Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 28 Dec 2012 17:21:48 -0800 Subject: [PATCH] Copy tmp subunit log if file is present. Copy .testrepository/tmp* with the scp plugin in python26 and python27 jobs if the file is present. This will give us some information about which tests ran if testr hangs and is unable to finish within the Jenkins timeout. If tests successfully run this file should not be copied as testr deletes it before the plugin will attempt to copy it. Change-Id: Id3d193094943e44bcf3083487f79a288d309d8c4 Reviewed-on: https://review.openstack.org/18742 Reviewed-by: Jeremy Stanley Approved: James E. Blair Reviewed-by: James E. Blair Tested-by: Jenkins --- .../files/jenkins_job_builder/config/python-jobs.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) 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 2ca9544e14..0ab48ee541 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 @@ -77,6 +77,10 @@ source: '**/*testr_results.html' keep-hierarchy: false copy-after-failure: true + - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' + source: '.testrepository/tmp*' + keep-hierarchy: false + copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' source: '**/*subunit_log.txt' keep-hierarchy: false @@ -138,6 +142,10 @@ source: '**/*testr_results.html' keep-hierarchy: false copy-after-failure: true + - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' + source: '.testrepository/tmp*' + keep-hierarchy: false + copy-after-failure: true - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER' source: '**/*subunit_log.txt' keep-hierarchy: false