summaryrefslogtreecommitdiffstats
path: root/update_jdn.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-09 16:54:52 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-09 16:54:52 +0200
commit8edf2d36ecbfcf5c41fbc78f6ec865596315008e (patch)
tree7aab75beaca162d26d465d70ca08c70095691796 /update_jdn.sh
parent7eafec6d9f22e92f0546841e0350730088b54b7c (diff)
downloadjenkins.debian.net-8edf2d36ecbfcf5c41fbc78f6ec865596315008e.tar.xz
improve FIXME handling
Diffstat (limited to 'update_jdn.sh')
-rwxr-xr-xupdate_jdn.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 1697fdaf..d1842657 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -319,6 +319,7 @@ if [ "$HOSTNAME" = "jenkins" ] ; then
cp $TMPFILE ${metaconfig%.py}
fi
done
+ rm -f $TMPFILE
for config in *.yaml ; do
if [ $config -nt $STAMP ] || [ ! -f $STAMP ] ; then
sudo jenkins-jobs update $config
@@ -384,14 +385,17 @@ fi
# There's always some work left...
# echo FIXME is ignored so check-jobs scripts can output templates requiring manual work
#
-echo
-rgrep FIXME $BASEDIR/* | grep -v "rgrep FIXME" | grep -v echo
+rgrep FIXME $BASEDIR/* | grep -v "rgrep FIXME" | grep -v echo > $TMPFILE
+if [ -s $TMPFILE ] ; then
+ echo
+ cat $TMPFILE
+ echo
+fi
+rm -f $TMPFILE
#
# finally
#
sudo touch $STAMP # so on the next run, only configs newer than this file will be updated
-rm -f $TMPFILE
explain "$(date) - finished deployment."
-echo "--------------------------------------------"