mirror of
https://github.com/reactos/buildbot_config.git
synced 2024-11-23 03:39:51 +00:00
Update workers to latest BuildBot release.
The directory name has been changed to reflect that.
This commit is contained in:
parent
b00d25dc73
commit
730b11c26d
@ -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
42
worker/buildbot.tac
Normal 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)
|
0
scripts/configure → worker/configure
vendored
0
scripts/configure → worker/configure
vendored
1
worker/requirements.txt
Normal file
1
worker/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
buildbot-worker==2.3.1
|
Loading…
Reference in New Issue
Block a user