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:
parent
605cba9aae
commit
9c01783dbc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user