Update workers to latest BuildBot release.

The directory name has been changed to reflect that.
This commit is contained in:
Colin Finck 2019-06-29 11:45:35 +02:00
parent b00d25dc73
commit 730b11c26d
No known key found for this signature in database
GPG Key ID: 1BA74E70456BA1A9
22 changed files with 43 additions and 35 deletions

View File

@ -1,35 +0,0 @@
import os
from twisted.application import service
from buildslave.bot import BuildSlave
basedir = r'/srv/buildbot'
rotateLength = 10000000
maxRotatedFiles = 10
# note: this line is matched against to check that this is a buildslave
# directory; do not edit it.
application = service.Application('buildslave')
try:
from twisted.python.logfile import LogFile
from twisted.python.log import ILogObserver, FileLogObserver
logfile = LogFile.fromFullPath(os.path.join(basedir, "twistd.log"), rotateLength=rotateLength,
maxRotatedFiles=maxRotatedFiles)
application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
except ImportError:
# probably not yet twisted 8.2.0 and beyond, can't set log yet
pass
buildmaster_host = 'build.reactos.org'
port = 9989
slavename = 'SLAVENAME_HERE'
passwd = 'PASSWORD_HERE'
keepalive = 60
usepty = 1
umask = 022
maxdelay = 30
s = BuildSlave(buildmaster_host, port, slavename, passwd, basedir,
keepalive, usepty, umask=umask, maxdelay=maxdelay)
s.setServiceParent(application)

42
worker/buildbot.tac Normal file
View File

@ -0,0 +1,42 @@
import os
from buildbot_worker.bot import Worker
from twisted.application import service
basedir = '/srv/buildbot/worker_data'
rotateLength = 10000000
maxRotatedFiles = 10
# if this is a relocatable tac file, get the directory containing the TAC
if basedir == '.':
import os.path
basedir = os.path.abspath(os.path.dirname(__file__))
# note: this line is matched against to check that this is a worker
# directory; do not edit it.
application = service.Application('buildbot-worker')
from twisted.python.logfile import LogFile
from twisted.python.log import ILogObserver, FileLogObserver
logfile = LogFile.fromFullPath(
os.path.join(basedir, "twistd.log"), rotateLength=rotateLength,
maxRotatedFiles=maxRotatedFiles)
application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
buildmaster_host = 'build.reactos.org'
port = 9989
workername = 'WORKERNAME_HERE'
passwd = 'PASSWORD_HERE'
keepalive = 600
umask = None
maxdelay = 300
numcpus = None
allow_shutdown = None
maxretries = None
s = Worker(buildmaster_host, port, workername, passwd, basedir,
keepalive, umask=umask, maxdelay=maxdelay,
numcpus=numcpus, allow_shutdown=allow_shutdown,
maxRetries=maxretries)
s.setServiceParent(application)

1
worker/requirements.txt Normal file
View File

@ -0,0 +1 @@
buildbot-worker==2.3.1