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 <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2012-12-28 17:21:48 -08:00 committed by Jenkins
parent df9cd8a647
commit 34cdef195b

View File

@ -77,6 +77,10 @@
source: '**/*testr_results.html' source: '**/*testr_results.html'
keep-hierarchy: false keep-hierarchy: false
copy-after-failure: true 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' - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '**/*subunit_log.txt' source: '**/*subunit_log.txt'
keep-hierarchy: false keep-hierarchy: false
@ -138,6 +142,10 @@
source: '**/*testr_results.html' source: '**/*testr_results.html'
keep-hierarchy: false keep-hierarchy: false
copy-after-failure: true 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' - target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '**/*subunit_log.txt' source: '**/*subunit_log.txt'
keep-hierarchy: false keep-hierarchy: false