mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-22 13:00:40 +08:00
wrong config
This commit is contained in:
parent
ec0d33b2a4
commit
195abe322e
2 changed files with 7 additions and 2 deletions
|
@ -55,6 +55,7 @@ class jobsManager:
|
||||||
self.__curr_job = None
|
self.__curr_job = None
|
||||||
self.pkgconfigs = load_all_yaml()
|
self.pkgconfigs = load_all_yaml()
|
||||||
self.last_updatecheck = 0.0
|
self.last_updatecheck = 0.0
|
||||||
|
self.idle = False
|
||||||
def _new_buildjob(self, job):
|
def _new_buildjob(self, job):
|
||||||
assert type(job) is Job
|
assert type(job) is Job
|
||||||
job_to_remove = list()
|
job_to_remove = list()
|
||||||
|
@ -124,9 +125,13 @@ class jobsManager:
|
||||||
if not self.__buildjobs:
|
if not self.__buildjobs:
|
||||||
# This part check for updates
|
# This part check for updates
|
||||||
if time() - self.last_updatecheck <= UPDATE_INTERVAL:
|
if time() - self.last_updatecheck <= UPDATE_INTERVAL:
|
||||||
|
if not self.idle:
|
||||||
|
logger.info('Buildbot is idling for package updates.')
|
||||||
|
self.idle = True
|
||||||
sleep(60)
|
sleep(60)
|
||||||
return
|
return
|
||||||
self.last_updatecheck = time()
|
self.last_updatecheck = time()
|
||||||
|
self.idle = False
|
||||||
updates = updmgr.check_update()
|
updates = updmgr.check_update()
|
||||||
for update in updates:
|
for update in updates:
|
||||||
(pkgconfig, ver, buildarchs) = update
|
(pkgconfig, ver, buildarchs) = update
|
||||||
|
|
|
@ -33,8 +33,8 @@ GPG_VERIFY_CMD = 'gpg --verify'
|
||||||
|
|
||||||
# Archlinux-Jerry Build Bot <buildbot@mail.jerryxiao.cc>
|
# Archlinux-Jerry Build Bot <buildbot@mail.jerryxiao.cc>
|
||||||
GPG_KEY = 'BEE4F1D5A661CA1FEA65C38093962CE07A0D5B7D'
|
GPG_KEY = 'BEE4F1D5A661CA1FEA65C38093962CE07A0D5B7D'
|
||||||
GPG_SIGN_CMD = (f'gpg --default-key {GPG_KEY} --no-armor'
|
GPG_SIGN_CMD = (f'gpg --default-key {GPG_KEY} --no-armor '
|
||||||
'--pinentry-mode loopback --passphrase \'\''
|
'--pinentry-mode loopback --passphrase \'\' '
|
||||||
'--detach-sign --yes --')
|
'--detach-sign --yes --')
|
||||||
|
|
||||||
#### config for buildbot.py
|
#### config for buildbot.py
|
||||||
|
|
Loading…
Reference in a new issue