[Qa-jenkins-scm] [jenkins.debian.net] 01/03: drop crappy tests which were trying to make sure triggers are set correctly. much better to create proper job-cfg/*yaml in the first place

Holger Levsen holger at moszumanska.debian.org
Tue Jun 2 14:15:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit c3406e04c34737e081832b8b27ef54b70d749738
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Jun 2 15:50:49 2015 +0200

    drop crappy tests which were trying to make sure triggers are set correctly. much better to create proper job-cfg/*yaml in the first place
---
 update_jdn.sh | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index af574fd..ddee847 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -282,21 +282,6 @@ explain "Jenkins jobs updated."
 rm -f $TMPFILE
 
 #
-# 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 -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)
-#DEFINED_REPRODUCIBLE_TRIGGERS=$(grep "^    defaults: reproducible$" reproducible.yaml|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
-	explain "Number of defined triggers ($DEFINED_TRIGGERS) differs from currently configured triggers ($CONFIGURED_TRIGGERS), please investigate."
-fi
-
-#
 # configure git for jenkins
 #
 if [ "$(sudo su - jenkins -c 'git config --get user.email')" != "jenkins at jenkins.debian.net" ] ; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list