[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] deal with disabled metaconfigs

Holger Levsen gitlab at salsa.debian.org
Wed Nov 7 18:11:25 GMT 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
15754b6b by Holger Levsen at 2018-11-07T18:11:17Z
deal with disabled metaconfigs

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- update_jdn.sh


Changes:

=====================================
update_jdn.sh
=====================================
@@ -653,10 +653,12 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ; then
 	#
 	cd /srv/jenkins/job-cfg
 	for metaconfig in *.yaml.py ; do
-		TMPFILE=$(sudo -u jenkins-adm mktemp)
-		./$metaconfig | sudo -u jenkins-adm tee "$TMPFILE" >/dev/null
-		if ! sudo -u jenkins-adm cmp -s ${metaconfig%.py} "$TMPFILE" ; then
-			sudo -u jenkins-adm mv "$TMPFILE" "${metaconfig%.py}"
+		if [ -f $metaconfig ] ; then
+			TMPFILE=$(sudo -u jenkins-adm mktemp)
+			./$metaconfig | sudo -u jenkins-adm tee "$TMPFILE" >/dev/null
+			if ! sudo -u jenkins-adm cmp -s ${metaconfig%.py} "$TMPFILE" ; then
+				sudo -u jenkins-adm mv "$TMPFILE" "${metaconfig%.py}"
+			fi
 		fi
 	done
 	for config in *.yaml ; do



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/15754b6bec951c958c6763286a2dbd3057604133

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/15754b6bec951c958c6763286a2dbd3057604133
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181107/f4dd514c/attachment.html>


More information about the Qa-jenkins-scm mailing list