4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-04-28 14:44:36 +00:00
QuasarAppCI/BuildBotLib/buildBotChangeSource.py
2020-12-22 14:30:07 +03:00

19 lines
594 B
Python

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