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
2019-07-22 10:20:59 +03:00
from buildbot.plugins import changes
2019-08-15 09:55:50 +03:00
import os
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):
2019-07-22 10:20:59 +03:00
def __init__(self):
BuildBotModule.__init__(self)
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'] = [
{ 'github': {
'secret': secret.getValue('WebHook'),
'token': secret.getValue('gitHub'),
'strict': True,
},
},
]
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
# )