From: Erik Mackdanz Date: Sun, 30 Jun 2024 04:34:50 +0000 (+0000) Subject: read worker password from prepared file X-Git-Url: https://git.humopery.space/?a=commitdiff_plain;h=058097e41dd4192f7c4d3fbec99933836f49bd15;p=private%2Fbuildbot-default.git read worker password from prepared file --- 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