QuasarAppCI/BuildBotLib/buildBotWorkers.py
EndrII c61d27e607
Some checks failed
buildbot/DocsGenerator Build finished.
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.
buildbot/WindowsCMakeBuilder Build finished.
remove repogen
2024-05-26 12:44:04 +02:00

45 lines
1.7 KiB
Python

# This Python file uses the following encoding: utf-8
from BuildBotLib.buildBotModule import BuildBotModule
from buildbot.plugins import worker
from BuildBotLib.secretManager import SecretManager
from pathlib import Path
class BuildBotWorkers(BuildBotModule):
def __init__(self, masterConf):
BuildBotModule.__init__(self, masterConf)
# WORKERS
# 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.
scr = SecretManager(str(Path.home()) + "/buildBotSecret/secret.json")
password = scr.getValue('WorkerPass')
self.masterConf['workers'] = [
worker.Worker("AndroidBuilder_v8Qt5", password),
worker.Worker("AndroidBuilder_v8Qt6", password),
worker.Worker("LinuxCMakeBuilderQt6", password),
worker.Worker("IOSCMakeBuilder", password),
worker.Worker("WindowsCMakeBuilder", password),
worker.Worker("Wasm32Builder", password),
worker.Worker("DocsGenerator", password),
worker.Worker("prodDeployer", password),
worker.Worker("webDeployer", password),
]
# 'protocols' contains information
# about protocols which master will use for
# communicating with workers.
# You must define at least 'port' option that workers
# could connect to your master with this protocol.
# 'port' must match the value configured into the workers (with their
# --master option)
self.masterConf['protocols'] = {'pb': {'port': 9989}}