X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-verify-job.sh;h=a1e76c9f54076be466bb876721e27dd9caec39da;hb=2a10c83b2d506008cc6c01c134515fb6328e1f3a;hp=789ffde2c0630d46585526e0600e8e38e8f502b1;hpb=c9d4074e828ab8d5a8455bc43059f6584708c76c;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-verify-job.sh b/shell/jjb-verify-job.sh index 789ffde2..a1e76c9f 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 --exclude jjb-test jjb +jenkins-jobs -l DEBUG test --recursive -o archives/job-configs 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 @@ -28,3 +28,8 @@ do fi done popd + +if [ ! -z "$(ls -A archives/job-configs)" ]; then + tar cJvf archives/job-configs.tar.xz archives/job-configs + rm -rf archives/job-configs +fi