QuasarAppCI/BuildBotLib/buildBotChangeSource.py

40 lines
1.2 KiB
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 00:49:28 +03:00
self.masterConf['www']['change_hook_dialects'] = [
2020-06-19 10:46:42 +03:00
{
'github':
{
'secret': secret.getValue('WebHook'),
'token': secret.getValue('gitHub'),
'strict': True,
},
2020-06-19 00:49:28 +03:00
},
]
2020-06-18 22:07:14 +03:00
# self.masterConf['www']['change_hook_dialects'] = [
# { 'github': {
# 'secret': secret.getValue('WebHook'),
# 'strict': True,
# },
# },
# ]
2020-06-19 00:49:28 +03:00
# change_hook_dialects={'github': {}},
2020-06-18 22:07:14 +03:00
2020-06-19 00:49:28 +03:00
# self.masterConf['www'] = dict(
# change_hook_dialects={'github': {
2020-06-18 22:07:14 +03:00
# 'secret': secret.getValue('WebHook'),
2020-06-19 00:49:28 +03:00
# 'token': secret.getValue('gitHub'),
2020-06-18 22:07:14 +03:00
# 'strict': True,
2020-06-19 00:49:28 +03:00
# }
2020-06-18 22:07:14 +03:00
# },
2020-06-19 00:49:28 +03:00
# )