[Qa-jenkins-scm] [jenkins.debian.net] 01/04: check that there are .yaml.py files to process before trying

Holger Levsen holger at layer-acht.org
Wed May 11 22:42:44 UTC 2016


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 d7f98b96dce173cd73ffa25677e0211fd9b79929
Author: Philip Hands <phil at hands.com>
Date:   Wed May 11 21:23:58 2016 +0200

    check that there are .yaml.py files to process before trying
---
 update_jdn.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/update_jdn.sh b/update_jdn.sh
index 846d29d..e113226 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -498,6 +498,7 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
 	cd /srv/jenkins/job-cfg
 	for metaconfig in *.yaml.py ; do
 	# there are both python2 and python3 scripts here
+        [ -e ./$metaconfig ] || continue
 		./$metaconfig > $TMPFILE
 		if ! sudo -u jenkins-adm cmp -s ${metaconfig%.py} - < $TMPFILE ; then
 			sudo -u jenkins-adm tee ${metaconfig%.py} > /dev/null < $TMPFILE

-- 
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