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
def Config(self): return { 'projectName': "Strawberry", 'projectURL': "https://www.strawberrymusicplayer.org/", 'buildbotURL': "https://buildbot.strawberrymusicplayer.org/", 'protocols': { "pb": { "port": "tcp:9989:interface=0.0.0.0" } }, 'workers': self.workers, 'builders': self.builders, 'change_source': [ builders.GitPoller("strawberry", "master"), builders.GitPoller("strawberry-mxe", "master"), ], 'www': { 'port': 8010, 'authz': util.Authz( allowRules=[ util.AnyControlEndpointMatcher(role="admins", defaultDeny=True) ], roleMatchers=[ util.RolesFromEmails(admins=["*****@*****.**"]), util.RolesFromOwner(role="owner"), ]), 'auth': util.GitHubAuth(GITHUB_AUTH["clientid"], GITHUB_AUTH["clientsecret"]), 'plugins': { 'waterfall_view': True, 'console_view': True, 'grid_view': True, } }, 'schedulers': [ basic.SingleBranchScheduler( name="automatic", change_filter=filter.ChangeFilter(project="strawberry", branch="master"), treeStableTimer=2 * 60, builderNames=self.auto_builder_names, ), basic.SingleBranchScheduler( name="mxe", change_filter=filter.ChangeFilter(project="strawberry-mxe", branch="master"), treeStableTimer=2 * 60, builderNames=[ 'MXE', ], ), forcesched.ForceScheduler( name="force", builderNames=[x['name'] for x in self.builders], buttonName="Start Custom Build", ), #timed.Nightly( # name="nightly", # minute=0, # branch="master", # builderNames=[x['name'] for x in self.builders], #), ], 'collapseRequests': False, }
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", ], ), ], }