[Buildbot-commits] [Buildbot] #1969: How can I config GerritChangeSource trigger building?

Buildbot nobody at buildbot.net
Tue May 24 06:15:38 UTC 2011


#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


More information about the Commits mailing list