63 lines
1.9 KiB
INI
63 lines
1.9 KiB
INI
|
# -*- python -*-
|
||
|
# ex: set filetype=python:
|
||
|
from buildbot.plugins import *
|
||
|
from sources import setup_change_source
|
||
|
from schedules import setup_schedules
|
||
|
from factories import *
|
||
|
from builders import builders
|
||
|
|
||
|
c = BuildmasterConfig = {}
|
||
|
####### WORKERS
|
||
|
c['workers'] = [worker.Worker("local_worker", "pass")]
|
||
|
c['protocols'] = {'pb': {'port': 9989}}
|
||
|
|
||
|
####### CHANGESOURCES Git stuff See sources.py
|
||
|
setup_change_source(c)
|
||
|
|
||
|
####### SCHEDULERS
|
||
|
setup_schedules(c)
|
||
|
|
||
|
###### BUILDERS Add your builders in the builders.py
|
||
|
c['builders'] = builders
|
||
|
|
||
|
####### BUILDBOT SERVICES
|
||
|
# 'services' is a list of BuildbotService items like reporter targets. The
|
||
|
# status of each build will be pushed to these targets. buildbot/reporters/*.py
|
||
|
# has a variety to choose from, like IRC bots. Use this to setup notifications
|
||
|
c['services'] = []
|
||
|
|
||
|
####### Setting the url and the title.s
|
||
|
c['title'] = "Pep / AcorOS"
|
||
|
c['titleURL'] = "https://peppermintos.com/"
|
||
|
c['buildbotURL'] = "http://manuel-pc2:8010/"
|
||
|
|
||
|
#### Config for the web interface
|
||
|
c['www'] = dict(port=8010,
|
||
|
plugins=dict(waterfall_view={}, console_view={}, grid_view={}))
|
||
|
|
||
|
c['www']['authz'] = util.Authz(
|
||
|
allowRules = [
|
||
|
# util.AnyEndpointMatcher(role="admins"),
|
||
|
util.AnyControlEndpointMatcher(role="admins"),
|
||
|
#util.AnyEndpointMatcher(role="pub")
|
||
|
#util.StopBuildEndpointMatcher(role="admins"),
|
||
|
#util.ForceBuildEndpointMatcher(role="admins"),
|
||
|
#util.RebuildBuildEndpointMatcher(role="admins")
|
||
|
],
|
||
|
roleMatchers = [
|
||
|
util.RolesFromUsername(roles=["admins"], usernames=['Admin', 'Manuel'])
|
||
|
#util.RolesFromUsername(roles=['pub'], usernames=['Public'])
|
||
|
|
||
|
]
|
||
|
)
|
||
|
|
||
|
# users
|
||
|
c['www']['auth'] = util.UserPasswordAuth({'Admin': 'b', 'Manuel': 'a'})
|
||
|
|
||
|
|
||
|
|
||
|
####### DB URL
|
||
|
c['db'] = {
|
||
|
'db_url' : "sqlite:///state.sqlite",
|
||
|
}
|