gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-deployment] branch master updated: Color picker.


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] branch master updated: Color picker.
Date: Tue, 16 Apr 2019 23:31:18 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new d182586  Color picker.
d182586 is described below

commit d1825868e2c4884e84807f71534adafd1af4822f
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Apr 16 23:31:03 2019 +0200

    Color picker.
---
 buildbot/master.cfg | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 74fd729..8aa8419 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -397,10 +397,29 @@ DEMO_SERVICES_CHECKER_BUILDER = util.BuilderConfig(
     workernames="demo-worker",
     factory=DEMO_SERVICES_CHECKER_FACTORY)
 
+##
+# Helper function that picks the inactive deployment between
+# blue and green and schedules it as the next worker for building
+# Taler.
+def pick_inactive_color(builder, workers_list, build_request):
+    f = open("/home/test/nonactive", "r")
+    if not f:
+        print("'test' doesn't specify the nonactive color, abort!")
+        return None
+    nonactive = f.readline().rstrip()
+
+    for worker in workers_list:
+        if nonactive == worker.worker.workername:
+            return worker
+
+    return None
+
+
 BUILDER_BUILDER = util.BuilderConfig(
     name="builder-builder",
     workernames=["builder-worker-green",
                  "builder-worker-blue"],
+    nextWorker=pick_inactive_color,
     factory=BUILD_FACTORY)
 
 SWITCHER_BUILDER = util.BuilderConfig(

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]