[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] update_jdn: fix syntax: execute the .py, don't just read it…

Mattia Rizzolo gitlab at salsa.debian.org
Tue May 29 21:18:00 BST 2018


Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
383304aa by Mattia Rizzolo at 2018-05-29T22:17:44+02:00
update_jdn: fix syntax: execute the .py, don't just read it…

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- update_jdn.sh


Changes:

=====================================
update_jdn.sh
=====================================
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -675,7 +675,7 @@ 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)
-		sudo -u jenkins-adm tee "$TMPFILE" >/dev/null < ./$metaconfig
+		./$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



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/383304aa5d479da7f555967c7e70978423e673d6

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/383304aa5d479da7f555967c7e70978423e673d6
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/20180529/3a454b30/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list