X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-verify-job.sh;h=d7a9e3139386c376d665b38c36e0a9fadb6116b0;hb=0ad9506f94f815ebdfa84f7b5ecd8b97cc0ba531;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..d7a9e313 100644 --- a/shell/jjb-verify-job.sh +++ b/shell/jjb-verify-job.sh @@ -13,7 +13,15 @@ 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 +# shellcheck disable=SC1090 +source ~/lf-env.sh + +lf-git-validate-jira-urls +lf-jjb-check-ascii + +lf-activate-venv jenkins-job-builder + +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 @@ -28,3 +36,8 @@ do fi done popd + +if [ -n "$(ls -A archives/job-configs)" ]; then + tar cJvf archives/job-configs.tar.xz archives/job-configs + rm -rf archives/job-configs +fi