4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-04-28 22:54:33 +00:00
QuasarAppCI/BuildBotLib/buildBotChangeSource.py
2020-06-19 10:46:42 +03:00

40 lines
1.2 KiB
Python

# This Python file uses the following encoding: utf-8
from BuildBotLib.buildBotModule import BuildBotModule
from BuildBotLib.secretManager import SecretManager
class BuildBotChangeSource(BuildBotModule):
def __init__(self):
BuildBotModule.__init__(self)
secret = SecretManager("/home/andrei/buildBotSecret/secret.json")
self.masterConf['www']['change_hook_dialects'] = [
{
'github':
{
'secret': secret.getValue('WebHook'),
'token': secret.getValue('gitHub'),
'strict': True,
},
},
]
# self.masterConf['www']['change_hook_dialects'] = [
# { 'github': {
# 'secret': secret.getValue('WebHook'),
# 'strict': True,
# },
# },
# ]
# change_hook_dialects={'github': {}},
# self.masterConf['www'] = dict(
# change_hook_dialects={'github': {
# 'secret': secret.getValue('WebHook'),
# 'token': secret.getValue('gitHub'),
# 'strict': True,
# }
# },
# )