From 7e1e81a0392787843ea6365a1426bd7dec6133ec Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 21 Feb 2015 14:09:36 +0100 Subject: calculate triggers: ignore commented triggers.... --- update_jdn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_jdn.sh b/update_jdn.sh index eb8658f1..9b38c96f 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -231,7 +231,7 @@ explain "Jenkins jobs updated." # crappy tests for checking that jenkins-job-builder works correctly # #wc -m counts one byte too many, so we substract one -let DEFINED_MY_TRIGGERS=$(grep my_trigger: *.yaml|grep -v "my_trigger: ''"|wc -l)+$(grep my_trigger: *.yaml|grep , |xargs -r echo | sed 's/[^,]//g'| wc -m)-1 +let DEFINED_MY_TRIGGERS=$(grep -v \# *.yaml | grep my_trigger: | grep -v "my_trigger: ''"|wc -l)+$(grep my_trigger: *.yaml|grep , |xargs -r echo | sed 's/[^,]//g'| wc -m)-1 let DEFINED_DI_TRIGGERS=$(grep "defaults: d-i-manual-html" d-i.yaml|wc -l)-5 # 5 need to be substracted because 5 d-i_manual_pdf jobs dont exist, yet their html pendants trigger them... #DEFINED_REPRODUCIBLE_TRIGGERS=$(grep "^ defaults: reproducible$" reproducible.yaml|wc -l) let DEFINED_TRIGGERS=DEFINED_MY_TRIGGERS+DEFINED_DI_TRIGGERS -- cgit v1.2.3-54-g00ecf