Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update lf-release-jobs gerrit trigger
[releng/global-jjb.git]
/
shell
/
jjb-verify-job.sh
diff --git
a/shell/jjb-verify-job.sh
b/shell/jjb-verify-job.sh
index
c42438e
..
d7a9e31
100644
(file)
--- 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
# 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
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
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
tar cJvf archives/job-configs.tar.xz archives/job-configs
rm -rf archives/job-configs
fi