Gzip testr result files before archiving.

Gzip testr result files before archiving them to static.o.o as the
subunit log files may be quite large. This will speed jobs up and reduce
the space needed on static.o.o to archive logs.

Change-Id: I3c9570a79c8c348c9b70b7c6a98ba5c207f97825
Reviewed-on: https://review.openstack.org/22636
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2013-02-21 15:36:07 -08:00 committed by Jenkins
parent 605cba9aae
commit 9c01783dbc
2 changed files with 6 additions and 4 deletions

View File

@ -44,6 +44,8 @@ if [ -f ".testrepository/0" ]
then
cp .testrepository/0 ./subunit_log.txt
/usr/local/jenkins/slave_scripts/subunit2html.py ./subunit_log.txt testr_results.html
gzip -9 ./subunit_log.txt
gzip -9 ./testr_results.html
fi
sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh post

View File

@ -81,7 +81,7 @@
keep-hierarchy: false
copy-after-failure: true
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '**/*testr_results.html'
source: '**/*testr_results.html.gz'
keep-hierarchy: false
copy-after-failure: true
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
@ -89,7 +89,7 @@
keep-hierarchy: false
copy-after-failure: true
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '**/*subunit_log.txt'
source: '**/*subunit_log.txt.gz'
keep-hierarchy: false
copy-after-failure: true
- console-log
@ -154,7 +154,7 @@
keep-hierarchy: false
copy-after-failure: true
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '**/*testr_results.html'
source: '**/*testr_results.html.gz'
keep-hierarchy: false
copy-after-failure: true
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
@ -162,7 +162,7 @@
keep-hierarchy: false
copy-after-failure: true
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
source: '**/*subunit_log.txt'
source: '**/*subunit_log.txt.gz'
keep-hierarchy: false
copy-after-failure: true
- console-log