summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-08 10:18:59 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-08 10:18:59 +0100
commit134733629ba1d13022513ebffc8c536e4fc1d8b7 (patch)
treebfd8397d4ece940ac95e3d20f7622cdb1a811c8c /update_jdn.sh
parentf708025fb4462aa39b7c82fc12284c6aaa289a3a (diff)
downloadjenkins.debian.net-134733629ba1d13022513ebffc8c536e4fc1d8b7.tar.xz
fixup: fixup: fixup: add tests to check if triggers are configured correctly
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 2d31a523..1ceffff0 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -68,7 +68,7 @@ explain "Jenkins jobs updated."
#
# crappy tests for checking that jenkins-job-builder works correctly
#
-DEFINED_TRIGGERS=$(grep -c _trigger: *.yaml)
+DEFINED_TRIGGERS=$(grep _trigger: *.yaml|wc -l)
CONFIGURED_TRIGGERS=$(grep -C 1 \<hudson.tasks.BuildTrigger /var/lib/jenkins/jobs/*/config.xml|grep child|wc -l)
if [ "$DEFINED_TRIGGERS" != "$CONFIGURED_TRIGGERS" ] ; then
figlet Warning