def __init__(self, name, pools, properties=None, last_good_urls=None, code_review_sites=None, project=None, filter_master=False): """Creates a try job source for Rietveld patch sets. Args: name: Name of this scheduler. pools: No idea. properties: Extra build properties specific to this scheduler. last_good_urls: Dictionary of project to last known good build URL. code_review_sites: Dictionary of project to code review site. This class care only about the 'chrome' project. project: The name of the project whose review site URL to extract. If the project is not found in the dictionary, an exception is raised. filter_master: Filter try jobs by master name. Necessary if several try masters share the same rietveld instance. """ TryJobBase.__init__(self, name, pools, properties, last_good_urls, code_review_sites) endpoint = self._GetRietveldEndPointForProject( code_review_sites, project, filter_master) self._poller = _RietveldPollerWithCache(endpoint, interval=10) self._valid_users = _ValidUserPoller(interval=12 * 60 * 60) self._project = project log.msg('TryJobRietveld created, get_pending_endpoint=%s ' 'project=%s' % (endpoint, project))
def __init__(self, name, pools, properties=None, last_good_urls=None, code_review_sites=None, project=None, filter_master=False): """Creates a try job source for Rietveld patch sets. Args: name: Name of this scheduler. pools: No idea. properties: Extra build properties specific to this scheduler. last_good_urls: Dictionary of project to last known good build URL. code_review_sites: Dictionary of project to code review site. This class care only about the 'chrome' project. project: The name of the project whose review site URL to extract. If the project is not found in the dictionary, an exception is raised. filter_master: Filter try jobs by master name. Necessary if several try masters share the same rietveld instance. """ TryJobBase.__init__(self, name, pools, properties, last_good_urls, code_review_sites) endpoint = self._GetRietveldEndPointForProject(code_review_sites, project, filter_master) self._poller = _RietveldPollerWithCache(endpoint, interval=10) self._valid_users = _ValidUserPoller(interval=12 * 60 * 60) self._project = project log.msg('TryJobRietveld created, get_pending_endpoint=%s ' 'project=%s' % (endpoint, project))
def __init__(self, name, pools, properties=None, last_good_urls=None, code_review_sites=None, project=None): """Creates a try job source for Rietveld patch sets. Args: name: Name of this scheduler. pools: No idea. properties: Extra build properties specific to this scheduler. last_good_urls: Dictionary of project to last known good build URL. code_review_sites: Dictionary of project to code review site. This class care only about the 'chrome' project. project: The name of the project whose review site URL to extract. If the project is not found in the dictionary, an exception is raised. """ TryJobBase.__init__(self, name, pools, properties, last_good_urls, code_review_sites) endpoint = self._GetRietveldEndPointForProject(code_review_sites, project) self._poller = _RietveldPoller(endpoint, interval=10) self._project = project log.msg('TryJobRietveld created, get_pending_endpoint=%s ' 'project=%s' % (endpoint, project))
def __init__(self, name, pools, properties=None, last_good_urls=None, code_review_sites=None): TryJobBase.__init__(self, name, pools, properties, last_good_urls, code_review_sites)
def __init__(self, name, pools, svn_url, properties=None, last_good_urls=None, code_review_sites=None): TryJobBase.__init__(self, name, pools, properties, last_good_urls, code_review_sites) self.watcher = SVNPoller(svnurl=svn_url, pollinterval=10)
def __init__(self, name, pools, port, userpass=None, properties=None, last_good_urls=None, code_review_sites=None): TryJobBase.__init__(self, name, pools, properties, last_good_urls, code_review_sites) if type(port) is int: port = "tcp:%d" % port self.port = port f = http.HTTPFactory() f.protocol.requestFactory = TryJobHTTPRequest f.parent = self s = strports.service(port, f) s.setServiceParent(self) log.msg('TryJobHTTP listening on port %s' % self.port)
def setServiceParent(self, parent): TryJobBase.setServiceParent(self, parent) if self.watcher: self.watcher.master = self.master self.watcher.setServiceParent(self)
def setServiceParent(self, parent): TryJobBase.setServiceParent(self, parent) self._poller.setServiceParent(self) self._poller.master = self.master self._valid_users.setServiceParent(self)
def setServiceParent(self, parent): TryJobBase.setServiceParent(self, parent) self.watcher.setServiceParent(self) self.watcher.master = self.master