X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-verify-job.sh;h=d7a9e3139386c376d665b38c36e0a9fadb6116b0;hb=9ce5ef214927e657dbd0d7cf6ed1ad613d642055;hp=c42438e9bc1f1d09cba0e0c58f1da15fff99374b;hpb=655da4ff0ed3d23d6e01369dbb85d6efb5fcfd1c;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-verify-job.sh b/shell/jjb-verify-job.sh index c42438e9..d7a9e313 100644 --- a/shell/jjb-verify-job.sh +++ b/shell/jjb-verify-job.sh @@ -13,6 +13,14 @@ echo "---> jjb-verify-job.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail +# 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 @@ -29,7 +37,7 @@ do done popd -if [ ! -z "$(ls -A archives/job-configs)" ]; then +if [ -n "$(ls -A archives/job-configs)" ]; then tar cJvf archives/job-configs.tar.xz archives/job-configs rm -rf archives/job-configs fi