[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: add check for correct future

Holger Levsen holger at layer-acht.org
Tue Jun 13 11:35:07 UTC 2017


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 57268dceb90e11563dd35991b6a53f4f4c2133c2
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Jun 13 13:34:57 2017 +0200

    reproducible Debian: add check for correct future
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_node_health_check.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh
index 3e9665e..9252644 100755
--- a/bin/reproducible_node_health_check.sh
+++ b/bin/reproducible_node_health_check.sh
@@ -70,6 +70,19 @@ if [ "$(ip link | sed -n '/LOOPBACK\|NOARP/!s/.* mtu \([0-9]*\) .*/\1/p' | sort
 	irc_message debian-reproducible "$HOSTNAME has wrong MTU, please tell the jenkins admins to fix this.  (sudo ifconfig eth0 mtu 1500)"
 	exit 1
 fi
+
+#
+# check for correct future
+#
+# (yes this is hardcoded but meh…)
+if [ "$(date +%Y)" = "2019" ] ; then
+	echo "Warning, today is the wrong future: $(date -u)"
+elif [ "$(date +%Y)" = "2018" ] ; then
+	echo "Good, today is the right future: $(date -u)"
+else
+	echo "Cherrish today, $(date -u)"
+fi
+
 if ! $DIRTY ; then
 	echo "$(date -u ) - Everything seems to be fine."
 	echo

-- 
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