[Qa-jenkins-scm] [jenkins.debian.net] 01/01: update_jdn: add a sanity syntax check on the jenkins script, run *before* the actual deploy of those files
Mattia Rizzolo
mattia at debian.org
Sat Apr 7 02:28:43 UTC 2018
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit 1fd3f36b7414ffa144ded723609689c1972c496d
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Apr 7 04:28:10 2018 +0200
update_jdn: add a sanity syntax check on the jenkins script, run *before* the actual deploy of those files
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
update_jdn.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/update_jdn.sh b/update_jdn.sh
index 3ce7869..da805d9 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -613,6 +613,8 @@ explain "packages configured."
#
cd $BASEDIR
[ -d /srv/jenkins/features ] && sudo rm -rf /srv/jenkins/features
+# check for bash syntax *before* actually deploying anything
+for f in bin/**/*.sh ; do bash -n "$f" ; done
for dir in bin logparse live mustache-templates ; do
sudo mkdir -p /srv/jenkins/$dir
sudo rsync -rpt --delete $dir/ /srv/jenkins/$dir/
--
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