X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-verify-job.sh;h=8dd50f7fb686017948502ad39454aee1f8efb01b;hb=027277490bf761405dcc4cbb02c4c92874d58766;hp=add393783e563e866b6a3a867f41fc09644c216b;hpb=acb1db1cf0efbeea7540866b500657d3dec935ce;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-verify-job.sh b/shell/jjb-verify-job.sh index add39378..8dd50f7f 100644 --- a/shell/jjb-verify-job.sh +++ b/shell/jjb-verify-job.sh @@ -13,7 +13,7 @@ echo "---> jjb-verify-job.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail -jenkins-jobs -l DEBUG test --recursive -o archives/job-configs jjb/ +jenkins-jobs -l DEBUG test --recursive -o archives/job-configs --config-xml jjb/ # Sort job output into sub-directories. On large Jenkins systems that have # many jobs archiving so many files into the same directory makes NGINX return @@ -29,7 +29,7 @@ do done popd -if [ ! -z "$(ls -A archives/job-configs)" ]; then - tar cvzf archives/job-configs.tar.gz archives/job-configs +if [ -n "$(ls -A archives/job-configs)" ]; then + tar cJvf archives/job-configs.tar.xz archives/job-configs rm -rf archives/job-configs fi