Ejemplo n.º 1
0
 def make_forcescheduler(self, two=False):
     scheduler = forcesched.ForceScheduler(
         name='force1',
         builderNames=['builder1', 'builder2'],
         codebases=[
             forcesched.CodebaseParameter(
                 '',
                 branch=forcesched.StringParameter(name='branch',
                                                   default="master"),
                 repository=forcesched.FixedParameter(
                     name="repository", default="repository.git")),
             forcesched.CodebaseParameter(
                 'second',
                 branch=forcesched.StringParameter(name='branch',
                                                   default="master"),
                 repository=forcesched.FixedParameter(
                     name="repository", default="repository2.git"))
         ],
         reason=forcesched.StringParameter(name='reason', required=True))
     self.schedulers = [scheduler]
     if two:
         scheduler2 = forcesched.ForceScheduler(name='force2',
                                                builderNames=['builder2'])
         self.schedulers.append(scheduler2)
     self.bot.master.allSchedulers = self.allSchedulers
Ejemplo n.º 2
0
 def __init__(self, branch, builders):
     super(ForceScheduler, self).__init__(
         name='force-{0}'.format(branch),
         builderNames=builders,
         branch=forcesched.FixedParameter(name='branch', default=branch),
         revision=forcesched.FixedParameter(name='branch'),
         repository=forcesched.FixedParameter(name='repository'),
         project=forcesched.FixedParameter(name='project'),
         properties=[])
Ejemplo n.º 3
0
 def Config(self):
     return {
         'projectName':
         "Clementine",
         'projectURL':
         "http://www.clementine-player.org/",
         'buildbotURL':
         "http://buildbot.clementine-player.org/",
         'slavePortnum':
         9989,
         'slaves':
         self.slaves,
         'builders':
         self.builders,
         'change_source': [
             builders.GitPoller("Android-Remote"),
             builders.GitPoller("Clementine"),
             builders.GitPoller("Dependencies"),
             builders.GitPoller("Website"),
         ],
         'status': [
             html.WebStatus(
                 http_port="tcp:8010",
                 authz=authz.Authz(
                     forceBuild=True,
                     forceAllBuilds=True,
                     stopBuild=True,
                     stopAllBuilds=True,
                     cancelPendingBuild=True,
                     cancelAllPendingBuilds=True,
                     stopChange=True,
                 ),
             ),
             mail.MailNotifier(
                 fromaddr="*****@*****.**",
                 lookup="gmail.com",
                 mode="failing",
             ),
         ],
         'schedulers': [
             basic.SingleBranchScheduler(
                 name="automatic",
                 change_filter=filter.ChangeFilter(project="clementine",
                                                   branch="master"),
                 treeStableTimer=2 * 60,
                 builderNames=self.auto_builder_names,
             ),
             basic.SingleBranchScheduler(
                 name="dependencies",
                 change_filter=filter.ChangeFilter(project="dependencies",
                                                   branch="master"),
                 treeStableTimer=2 * 60,
                 builderNames=[
                     'Mac Dependencies',
                     'Windows Dependencies',
                 ],
             ),
             basic.SingleBranchScheduler(
                 name="website",
                 change_filter=filter.ChangeFilter(project="website",
                                                   branch="master"),
                 treeStableTimer=2 * 60,
                 builderNames=[
                     "Transifex website POT push",
                 ],
             ),
             basic.SingleBranchScheduler(
                 name="android-remote",
                 change_filter=filter.ChangeFilter(project="android-remote",
                                                   branch="master"),
                 treeStableTimer=2 * 60,
                 builderNames=[
                     "Android Remote",
                 ],
             ),
             forcesched.ForceScheduler(
                 name="force",
                 reason=forcesched.FixedParameter(name="reason",
                                                  default="force build"),
                 branch=forcesched.StringParameter(name="branch",
                                                   default="master"),
                 revision=forcesched.FixedParameter(name="revision",
                                                    default=""),
                 repository=forcesched.FixedParameter(name="repository",
                                                      default=""),
                 project=forcesched.FixedParameter(name="project",
                                                   default=""),
                 properties=[],
                 builderNames=[x['name'] for x in self.builders],
             ),
             timed.Nightly(
                 name="transifex_pull",
                 change_filter=filter.ChangeFilter(project="clementine",
                                                   branch="master"),
                 hour=10,
                 minute=0,
                 dayOfWeek=0,
                 branch="master",
                 builderNames=[
                     "Transifex PO pull",
                     "Transifex website PO pull",
                     "Transifex Android PO pull",
                 ],
             ),
         ],
     }