QuasarAppCI/BuildBotLib/buildBotWorkers.py

35 lines
1.2 KiB
Python
Raw Normal View History

2019-07-22 10:20:59 +03:00
# This Python file uses the following encoding: utf-8
2019-12-26 13:48:06 +03:00
from BuildBotLib.buildBotModule import BuildBotModule
from buildbot.plugins import worker
2019-07-22 10:20:59 +03:00
2019-12-26 13:48:06 +03:00
class BuildBotWorkers(BuildBotModule):
2019-07-22 10:20:59 +03:00
def __init__(self):
BuildBotModule.__init__(self)
2019-12-26 13:48:06 +03:00
# WORKERS
2019-07-22 10:20:59 +03:00
2019-12-26 13:48:06 +03:00
# The 'workers' list defines the set
# of recognized workers. Each element is
# a Worker object, specifying a unique worker
# name and password. The same
2019-07-22 10:20:59 +03:00
# worker name and password must be configured on the worker.
self.masterConf['workers'] = [
worker.Worker("github-worker", "pass"),
worker.Worker("Tester", "pass"),
2019-07-22 21:01:26 +03:00
worker.Worker("qtBuilder", "pass"),
2019-12-13 16:09:43 +03:00
worker.Worker("NPM", "pass"),
2019-12-13 16:15:04 +03:00
worker.Worker("assets-builder", "pass")
2019-07-22 10:20:59 +03:00
]
2019-12-26 13:48:06 +03:00
# 'protocols' contains information
# about protocols which master will use for
# communicating with workers.
# You must define at least 'port' option that workers
2019-07-22 10:20:59 +03:00
# 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}}