4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-04-28 22:54:33 +00:00
QuasarAppCI/BuildBotLib/buildBotServices.py
2019-07-22 10:20:59 +03:00

25 lines
953 B
Python

# This Python file uses the following encoding: utf-8
from BuildBotLib.buildBotModule import *
from buildbot.plugins import reporters, util, secrets
class buildBotServices(BuildBotModule):
def __init__(self):
BuildBotModule.__init__(self)
####### 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.
self.masterConf['services'] = []
self.masterConf['secretsProviders'] = [
secrets.SecretInAFile(dirname="/home/andrei/buildBotSecret")
]
gc = reporters.GitHubCommentPush(token=util.Secret("gitHub"),
startDescription='Build started.',
endDescription='Build done.')
self.masterConf['services'].append(gc)