[Qa-jenkins-scm] [jenkins.debian.net] 01/01: update_jdn: execute the python scripts without calling directly the interpreter. allow both py2 and py3 scripts
Holger Levsen
holger at moszumanska.debian.org
Wed Jun 3 21:53:54 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 2192cc4ed8a187f46093e1907d394fe6da93433d
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Wed Jun 3 23:52:30 2015 +0200
update_jdn: execute the python scripts without calling directly the interpreter. allow both py2 and py3 scripts
---
update_jdn.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index ddee847..e494b3c 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -266,7 +266,8 @@ explain "Updated user content for Jenkins."
#
cd /srv/jenkins/job-cfg
for metaconfig in *.yaml.py ; do
- python $metaconfig > $TMPFILE
+# there are both python2 and python3 scripts here
+ ./$metaconfig > $TMPFILE
if ! $(diff ${metaconfig%.py} $TMPFILE > /dev/null) ; then
cp $TMPFILE ${metaconfig%.py}
fi
--
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