# buildbot.tac - OSGeo BuildBot slave startup file from twisted.application import service from buildbot.slave.bot import BuildSlave import passwd_gdal as secret ###### CUSTOM CONFIGURATION import os import os.path os.environ['OSGEOBUILDHOME'] = r'/osgeo/buildbot' ###### END OF CONFIGURATION basedir = r'/osgeo/buildbot/slaves/gdal' buildmaster_host = '198.202.74.219' # xblade11-2 port = 1500 slavename = secret.telascience['name'] passwd = secret.telascience['pass'] keepalive = 600 usepty = 0 umask = None maxdelay = 300 rotateLength = 1000000 maxRotatedFiles = None application = service.Application('buildslave') try: from twisted.python.logfile import LogFile from twisted.python.log import ILogObserver, FileLogObserver logfile = LogFile.fromFullPath("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 s = BuildSlave(buildmaster_host, port, slavename, passwd, basedir, keepalive, usepty, umask=umask, maxdelay=maxdelay) s.setServiceParent(application)