def __init__(self, name, builderNames, periodicBuildTimer, branch=None, properties={}, categories=None): _Base.__init__(self, name, builderNames, properties, categories) self.periodicBuildTimer = periodicBuildTimer self.branch = branch self.reason = ("The Periodic scheduler named '%s' triggered this build" % name)
def __init__(self, name, builderNames, port, userpass, properties={}, categories=None): _Base.__init__(self, name, builderNames, properties, categories) if type(port) is int: port = "tcp:%d" % port self.port = port self.userpass = userpass c = checkers.InMemoryUsernamePasswordDatabaseDontUse() for user,passwd in self.userpass: c.addUser(user, passwd) p = portal.Portal(self) p.registerChecker(c) f = pb.PBServerFactory(p) s = strports.service(port, f) s.setServiceParent(self)
def __init__(self, name, builderNames, minute=0, hour='*', dayOfMonth='*', month='*', dayOfWeek='*', branch=None, fileIsImportant=None, onlyIfChanged=False, properties={}, categories=None): # Setting minute=0 really makes this an 'Hourly' scheduler. This # seemed like a better default than minute='*', which would result in # a build every 60 seconds. _Base.__init__(self, name, builderNames, properties, categories) self.minute = minute self.hour = hour self.dayOfMonth = dayOfMonth self.month = month self.dayOfWeek = dayOfWeek self.branch = branch self.onlyIfChanged = onlyIfChanged self.delayedRun = None self.nextRunTime = None self.reason = ("The Nightly scheduler named '%s' triggered this build" % name) self.fileIsImportant = None if fileIsImportant: assert callable(fileIsImportant) self.fileIsImportant = fileIsImportant self._start_time = time.time()
def __init__(self, name, builderNames, properties={}, categories=None): _Base.__init__(self, name, builderNames, properties, categories) self._waiters = {} self.reason = "Triggerable(%s)" % name
def __init__(self, name, builderNames, jobdir, properties={}, categories=None): _Base.__init__(self, name, builderNames, properties, categories) self.jobdir = jobdir self.watcher = MaildirService() self.watcher.setServiceParent(self)