def __init__(self, **options): self.name = options.get("name") self.mail_host = options.get("mail_host", "localhost") self.email_notification_sender = options.get("email_notification_sender", "").strip() self.email_notification_recipients = options.get("email_notification_recipients", "").split() self.mail_mode = options.get("mail_mode", "failing") self.mail_lookup = options.get("mail_lookup", None) # message formatter is later used as a named arg for MailNotifier # If message_formatter is None, it uses the internal one self.message_formatter = options.get("email_zope_test_style", False) and self.messageFormatter or None self.slave_names = options.get("slave_names", "").split() self.vcs = options.get("vcs", "svn") self.vcs_mode = options.get("vcs_mode", "update") self.vcs_retry = (10, 3) self.always_use_latest = options.get("always_use_latest", "").strip().lower() in ("yes", "true", "y") or False d_timeout = options.get("timeout", "3600").strip() self.timeout = int(d_timeout) self.build_timeout = int(options.get("build_timeout", d_timeout).strip()) self.test_timeout = int(options.get("test_timeout", d_timeout).strip()) self.build_sequence = split_option(options, "build_sequence") self.test_sequence = split_option(options, "test_sequence") if not self.test_sequence: self.test_sequence = [join("bin", "test")] self.dependencies = split_option(options, "dependencies") self.repository = options.get("repository", "") self.branch = options.get("branch", "") self.options = options self.schedulers = [] self.username, self.password = self._get_login(self.repository)
def __init__(self, **options): self.name = options.get("name") self.mail_host = options.get("mail_host", "localhost") self.email_notification_sender = options.get("email_notification_sender", "").strip() self.email_notification_recipients = options.get("email_notification_recipient", "").split() self.slave_names = options.get("slave_names", "").split() self.vcs = options.get("vcs", "svn") self.vcs_mode = options.get("vcs_mode", "update") self.vcs_retry = (10, 3) self.always_use_latest = options.get("always_use_latest", "").strip().lower() in ("yes", "true", "y") or False d_timeout = options.get("timeout", "3600").strip() self.timeout = int(d_timeout) self.build_timeout = int(options.get("build_timeout", d_timeout).strip()) self.test_timeout = int(options.get("test_timeout", d_timeout).strip()) self.build_sequence = split_option(options, "build_sequence") self.test_sequence = split_option(options, "test_sequence") if not self.test_sequence: self.test_sequence = [join("bin", "test")] self.dependencies = split_option(options, "dependencies") self.repository = options.get("repository", "") self.branch = options.get("branch", "") self.options = options self.schedulers = [] self.username, self.password = self._get_login(self.repository)
def __init__(self, **options): self.name = options.get('name') self.mail_host = options.get('mail_host', 'localhost') self.email_notification_sender = options.get('email_notification_sender','').strip() self.email_notification_recipients = options.get('email_notification_recipients', '').split() self.mail_mode = options.get('mail_mode', 'failing') self.mail_lookup = options.get('mail_lookup', None) self.slave_names = options.get('slave_names', '').split() self.vcs = options.get('vcs', 'svn') self.vcs_mode = options.get('vcs_mode', 'update') self.vcs_retry = (10, 3) self.always_use_latest = ( options.get('always_use_latest', '').strip().lower() in ('yes', 'true', 'y') or False) d_timeout = options.get('timeout', '3600').strip() self.timeout = int(d_timeout) self.build_timeout = int(options.get('build_timeout', d_timeout).strip()) self.test_timeout = int(options.get('test_timeout', d_timeout).strip()) self.build_sequence = split_option(options, 'build_sequence') self.test_sequence = split_option(options, 'test_sequence') if not self.test_sequence: self.test_sequence = [join('bin', 'test')] self.dependencies = split_option(options, 'dependencies') self.repository = options.get('repository', '') self.branch = options.get('branch', '') self.options = options self.schedulers = [] self.username, self.password = self._get_login(self.repository)