Verified Commit 1fd3f36b authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

update_jdn: add a sanity syntax check on the jenkins script, run *before* the...


update_jdn: add a sanity syntax check on the jenkins script, run *before* the actual deploy of those files

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 1d8394b6
...@@ -613,6 +613,8 @@ explain "packages configured." ...@@ -613,6 +613,8 @@ explain "packages configured."
# #
cd $BASEDIR cd $BASEDIR
[ -d /srv/jenkins/features ] && sudo rm -rf /srv/jenkins/features [ -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 for dir in bin logparse live mustache-templates ; do
sudo mkdir -p /srv/jenkins/$dir sudo mkdir -p /srv/jenkins/$dir
sudo rsync -rpt --delete $dir/ /srv/jenkins/$dir/ sudo rsync -rpt --delete $dir/ /srv/jenkins/$dir/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment