from buildbot.changes.gitpoller import GitPoller
from buildbot.changes.pb import PBChangeSource
from buildbot.config.builder import BuilderConfig
+from buildbot.revlinks import RevlinkMatch, RevlinkMultiplexer
from buildbot.steps.master import Assert
from buildbot.steps.source.git import Git
from buildbot.steps.shell import SetPropertyFromCommand, ShellCommand
'db_url' : util.Interpolate("postgresql://buildbot:%(secret:database.pass)s@127.0.0.1/buildbot")
},
'protocols': {'pb': {'port': "ssl:9989:privateKey=privkey.pem:certKey=fullchain.pem"}},
+ 'revlink': RevlinkMultiplexer(
+ # for rendering commit links. Links are rendered at change-submit-time not display-time
+ # so changes are only effective for future commits.
+ # https://docs.buildbot.net/current/manual/configuration/global.html#revision-links
+ # post-receive hook script must have --repository
+ RevlinkMatch(
+ repo_urls=[r'/usr/src/bare/(.*)'],
+ revlink=r'https://git.humopery.space/?p=\1;a=commitdiff;h=%s')
+ # TODO: render framagit links
+ # TODO: render github links
+ # TODO: render gitlab links
+ ),
'schedulers': [ForceScheduler(
name="force",
builderNames=["buildbot","crawl","fcgisrv","ledger","npupnp",