From 9b9193d38b6cfe52cd6e9da275c35ae0ff6bc3b8 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 19 Jun 2018 14:05:23 +0200 Subject: Lockfile-based Buildbot pausing mechanism. --- buildbot/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'buildbot') diff --git a/buildbot/build.sh b/buildbot/build.sh index f04240f..c6ff84c 100755 --- a/buildbot/build.sh +++ b/buildbot/build.sh @@ -8,4 +8,11 @@ if test $active = "test-blue"; then nonactive="test-green" fi +PAUSE_LOCKFILE=/tmp/buildbot_pause.lock + +if [ -f $PAUSE_LOCKFILE ]; then +echo "The Buildbot is paused, remove ${PAUSE_LOCKFILE} to resume." +exit 0 +fi + sudo -u $nonactive bash -c 'source $HOME/activate; taler-deployment-build' -- cgit v1.2.3