From 058097e41dd4192f7c4d3fbec99933836f49bd15 Mon Sep 17 00:00:00 2001 From: Erik Mackdanz Date: Sun, 30 Jun 2024 04:34:50 +0000 Subject: [PATCH] read worker password from prepared file --- master.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index 0ecfe3b..3835957 100644 --- a/master.cfg +++ b/master.cfg @@ -15,7 +15,10 @@ c = BuildmasterConfig = {} # The 'workers' list defines the set of recognized workers. Each element is # a Worker object, specifying a unique worker name and password. The same # worker name and password must be configured on the worker. -c['workers'] = [worker.Worker("example-worker", "pass")] +workerpass = None +with open("worker-carbon.pass") as f: + workerpass = f.readline() +c['workers'] = [worker.Worker("carbon-worker", workerpass)] # 'protocols' contains information about protocols which master will use for # communicating with workers. You must define at least 'port' option that workers @@ -66,7 +69,7 @@ factory.addStep(steps.ShellCommand(command=["trial", "hello"], c['builders'] = [] c['builders'].append( util.BuilderConfig(name="runtests", - workernames=["example-worker"], + workernames=["carbon-worker"], factory=factory)) ####### BUILDBOT SERVICES -- 2.52.0