diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-09-30 18:46:27 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-09-30 18:46:27 +0200 |
commit | 60a714fc35c15930a84dd74f399e7358e5b4cefe (patch) | |
tree | 937d69ff77d1d4e3ca0fd4a7c881f13bcf698781 /update_jdn.sh | |
parent | 07edb6d9c253cb4cabcad7450cac9dddbfeda8aa (diff) | |
download | jenkins.debian.net-60a714fc35c15930a84dd74f399e7358e5b4cefe.tar.xz |
update_j.d.n: count triggers correctly
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-x | update_jdn.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index c7786b2a..f39005aa 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -130,7 +130,9 @@ explain "Jenkins jobs updated." #wc -m counts one byte too many, so we substract one let DEFINED_MY_TRIGGERS=$(grep my_trigger: *.yaml|wc -l)+$(grep my_trigger: *.yaml|grep , |xargs -r echo | sed 's/[^,]//g'| wc -m)-1 DEFINED_DI_TRIGGERS=$(grep "defaults: d-i-manual-html" d-i.yaml|wc -l) +DEFINED_REPRODUCIBLE_TRIGGERS=$(grep "^ defaults: reproducible$" reproducible.yam|wc -l) let DEFINED_TRIGGERS=DEFINED_MY_TRIGGERS+DEFINED_DI_TRIGGERS +let DEFINED_TRIGGERS=DEFINED_TRIGGERS+DEFINED_REPRODUCIBLE_TRIGGERS let CONFIGURED_TRIGGERS=$(grep \<childProjects /var/lib/jenkins/jobs/*/config.xml|wc -l)+$(grep \<childProjects /var/lib/jenkins/jobs/*/config.xml |grep , |xargs -r echo | sed 's/[^,]//g'| wc -m)-1 if [ "$DEFINED_TRIGGERS" != "$CONFIGURED_TRIGGERS" ] ; then figlet -f banner Warning |