commit 8e715805f5a24e1f08343d0a9aa29b6de941e9cb
parent c845f437369524d63183a6254e9afcaa300dc18f
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 16 Apr 2019 21:50:35 +0200
Moving workers.
Diffstat:
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
@@ -386,7 +386,8 @@ AUDITOR_BUILDER = util.BuilderConfig(
TIP_RESERVE_TOPPER_BUILDER = util.BuilderConfig(
name="tip-reserve-topper-builder",
- workernames="switcher-worker",
+ workernames=["builder-worker-green",
+ "builder-worker-blue"],
factory=TIP_RESERVE_TOPPER_FACTORY)
DEMO_SERVICES_CHECKER_BUILDER = util.BuilderConfig(
@@ -402,7 +403,7 @@ BUILDER_BUILDER = util.BuilderConfig(
SWITCHER_BUILDER = util.BuilderConfig(
name="switcher-builder",
- workernames=["switcher-worker"],
+ workernames=["testswitcher-worker"],
factory=SWITCH_FACTORY)
SELENIUM_BUILDER = util.BuilderConfig(
diff --git a/buildbot/top_reserve.sh b/buildbot/top_reserve.sh
@@ -1,5 +1,11 @@
#!/bin/bash
-active=$(cat /home/test/active)
+source "${HOME}/activate"
+ACTIVE_COLOR="$(cat /home/test/active)"
-sudo -u $active bash -c 'source $HOME/activate; taler-deployment-top-reserve'
+if ! test "${TALER_ENV_COLOR}" = "${ACTIVE_COLOR}"; then
+ echo "I'm the inactive color, will not top the reserve up!"
+ exit 0
+fi
+
+taler-deployment-top-reserve'