mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-28 22:54:33 +00:00
64 lines
2.5 KiB
Python
64 lines
2.5 KiB
Python
# This Python file uses the following encoding: utf-8
|
||
from BuildBotLib.buildBotModule import BuildBotModule
|
||
from buildbot.plugins import changes
|
||
import os
|
||
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'),
|
||
'strict': True,
|
||
},
|
||
},
|
||
]
|
||
|
||
# self.masterConf['change_source'] = [
|
||
# changes.GitPoller(
|
||
# repourl='git@github.com:QuasarApp/Snake.git',
|
||
# project='qmake-Snake',
|
||
# gitbin=os.path.dirname(os.path.realpath(__file__))
|
||
# + "/git/gitBin.sh",
|
||
# branches=True, # получаем изменения со всех веток
|
||
# pollInterval=60
|
||
# ),
|
||
# changes.GitPoller(
|
||
# repourl='git@github.com:QuasarApp/CQtDeployer.git',
|
||
# project='qmake-CQtDeployer',
|
||
# gitbin=os.path.dirname(os.path.realpath(__file__))
|
||
# + "/git/gitBin.sh",
|
||
# branches=True, # получаем изменения со всех веток
|
||
# pollInterval=61
|
||
# ),
|
||
# changes.GitPoller(
|
||
# repourl='git@github.com:QuasarApp/Qt-Secret.git',
|
||
# project='qmake-Qt-Secret',
|
||
# gitbin=os.path.dirname(os.path.realpath(__file__))
|
||
# + "/git/gitBin.sh",
|
||
# branches=True, # получаем изменения со всех веток
|
||
# pollInterval=62
|
||
# ),
|
||
# changes.GitPoller(
|
||
# repourl='git@github.com:QuasarApp/Hanoi-Towers.git',
|
||
# project='qmake-Hanoi-Towers',
|
||
# gitbin=os.path.dirname(os.path.realpath(__file__))
|
||
# + "/git/gitBin.sh",
|
||
# branches=True, # получаем изменения со всех веток
|
||
# pollInterval=63
|
||
# ),
|
||
# changes.GitPoller(
|
||
# repourl='https://github.com/usermeme/chat-vironit.git',
|
||
# project='npm-Chat',
|
||
# gitbin=os.path.dirname(os.path.realpath(__file__))
|
||
# + "/git/gitBin.sh",
|
||
# branch='master',
|
||
# pollInterval=64
|
||
# )
|
||
# ]
|