#1969: How can I config GerritChangeSource trigger building?
----------------------------+----------------------
Reporter: clino | Owner:
Type: support-request | Status: new
Priority: major | Milestone: ongoing
Version: master | Resolution:
Keywords: gerrit |
----------------------------+----------------------
Comment (by clino):
I modify my master.cfg from buildbot/master/docs/examples/repo_gerrit.cfg.
related python code snippets:
first time:
{{{
from buildbot.changes.gerritchangesource import GerritChangeSource
c['change_source'] = GerritChangeSource(gerrit_server, gerrit_user)
#....
from buildbot.schedulers import timed
from buildbot.changes.filter import ChangeFilter
daily_sched = timed.Nightly(name="daily",
branch = None,
builderNames=get_buildernames("daily"),
dayOfWeek=range(0,5),
hour=[10,12,15,18,23],
onlyIfChanged=False,#if change to "onlyIfChanged=False",it will not
build at all
)
}}}
Using this config I can see changes in waterfall view,and in builder
column,it show something like"waiting next in ~ 45 mins at 15:00 ",and
when time is up it will begin build,but after change to
"onlyIfChanged=False",it will not build even time is up.
--
Ticket URL: <http://trac.buildbot.net/ticket/1969#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits