QuasarAppCI/BuildBotLib/buildBotChangeSource.py

18 lines
562 B
Python
Raw Normal View History

2019-07-22 10:20:59 +03:00
# This Python file uses the following encoding: utf-8
2019-12-26 13:48:06 +03:00
from BuildBotLib.buildBotModule import BuildBotModule
2020-02-08 00:17:42 +03:00
from BuildBotLib.secretManager import SecretManager
2019-07-22 10:20:59 +03:00
2019-12-26 13:48:06 +03:00
class BuildBotChangeSource(BuildBotModule):
2020-06-19 11:09:23 +03:00
def __init__(self, masterConf):
BuildBotModule.__init__(self, masterConf)
2019-07-22 10:20:59 +03:00
2020-02-08 00:17:42 +03:00
secret = SecretManager("/home/andrei/buildBotSecret/secret.json")
2020-06-19 13:13:20 +03:00
self.masterConf['www']['change_hook_dialects'] = {
2020-06-19 10:46:42 +03:00
'github':
{
'secret': secret.getValue('WebHook'),
},
2020-06-19 13:13:20 +03:00
}