summaryrefslogtreecommitdiff
path: root/buildbot
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-06-19 14:05:23 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-06-19 14:06:27 +0200
commit9b9193d38b6cfe52cd6e9da275c35ae0ff6bc3b8 (patch)
tree63323a180d5cb2d6e1376538c85031a19d5b95a8 /buildbot
parent1442a05fdbad965792df6e3480a0a781aae53697 (diff)
downloaddeployment-9b9193d38b6cfe52cd6e9da275c35ae0ff6bc3b8.tar.gz
deployment-9b9193d38b6cfe52cd6e9da275c35ae0ff6bc3b8.tar.bz2
deployment-9b9193d38b6cfe52cd6e9da275c35ae0ff6bc3b8.zip
Lockfile-based Buildbot pausing mechanism.
Diffstat (limited to 'buildbot')
-rwxr-xr-xbuildbot/build.sh7
1 files changed, 7 insertions, 0 deletions
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'