Merge pull request #2 from QuasarApp/newGitBin

New git bin
This commit is contained in:
Andrei Yankovich 2019-08-15 10:00:37 +03:00 committed by GitHub
commit 9eacb86807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -17,6 +17,8 @@
"buildBotChangeSource.py",
"qtUpdater.py",
"secretManager.py",
"NPM.py"
"NPM.py",
"git/gitBin.sh"
]
}

View File

@ -2,6 +2,7 @@
from BuildBotLib.buildBotModule import *
from buildbot.plugins import util
from buildbot.plugins import changes
import os
class buildBotChangeSource(BuildBotModule):
def __init__(self):
@ -11,30 +12,35 @@ class buildBotChangeSource(BuildBotModule):
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/Console-QtDeployer.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
)

3
BuildBotLib/git/gitBin.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
[ "${1}" = "log" ] && { shift && git log --ignore-missing "${@}"; } || git "${@}"