summaryrefslogtreecommitdiff
path: root/buildbot/build.sh
blob: 800128a405e50fa60dbae78841eff04afa04350d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

WHOAMI="$(whoami)"
ACTIVE_COLOR="$(cat /home/test/active)"

echo "whoami: $WHOAMI, active color: $ACTIVE_COLOR"

if test $WHOAMI = $ACTIVE_COLOR; then
  echo "I'm the active color, no need to compile and switch!"
  exit 1
fi

PAUSE_LOCKFILE=/tmp/buildbot_pause.lock

if [ -f $PAUSE_LOCKFILE ]; then
echo "The Buildbot is paused, remove ${PAUSE_LOCKFILE} to resume."

# Treat this as error, so dependent schedulers won't fire up.
exit 1
fi

source "${HOME}/activate"
taler-deployment-build