示例#1
0
文件: timed.py 项目: frelo/buildbot
 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)
示例#2
0
    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)
示例#3
0
文件: timed.py 项目: frelo/buildbot
 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()
示例#4
0
 def __init__(self, name, builderNames, properties={}, categories=None):
     _Base.__init__(self, name, builderNames, properties, categories)
     self._waiters = {}
     self.reason = "Triggerable(%s)" % name
示例#5
0
 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)