[Buildbot-devel] SVNPoller.. putting it together..

Michael March mmarch at gmail.com
Tue Jan 16 22:21:49 UTC 2007


Ok.. I have this almost working.. the poller can see the changs.. but
ignores them..

2007/01/16 14:07 MST [-] <AnyBranchScheduler 'main'> ignoring off-branch
<buildb ot.changes.changes.Change instance at 0xb6ebdeac>
2007/01/16 14:07 MST [-] SVNPoller finished polling
2007/01/16 14:07 MST [-] _finished : None

The 'changes' column in the waterfall report also looks good..

Here is a snippet of sien lines from my config:

from buildbot.changes.svnpoller import SVNPoller
# The code below is in the 'trunk' off the 'HelloWorldJava' subdir..
sp = SVNPoller(svnurl='
http://myrepo.com/svn/repos/scm/users/mmarch/HelloWorldJava/',
pollinterval=60)
c['sources'].append(sp)
####### SCHEDULERS

## configure the Schedulers

from buildbot.scheduler import Scheduler, Periodic, AnyBranchScheduler
# c['schedulers'] = []
#c['schedulers'].append(Scheduler(name="all", branch=None,
#                                 treeStableTimer=2*60,
#                                 builderNames=["buildbot-full"]))
periodic = Periodic("every_6_hours", ["HelloWorldJava_trunk"], 6*60*60)
# Below is what I want to run...
instant = AnyBranchScheduler('main',['trunk'], 60,
['HelloWorldJava_trunk_instant'])
c['schedulers'] = [periodic, instant]


On 1/15/07, Scott Lamb <slamb at slamb.org> wrote:
>
>
> On Jan 15, 2007, at 1:29 PM, Michael March wrote:
>
> > I have 'periodic'  builds working great.. now I am trying to add a
> > second builder that will build my 'trunk' when source code
> > changes.. I have the poller configured..and its functioning great
> > (as in I can see it 'poll' the SVN server and detect changes.. but
> > I am not sure what do do next to have it trigger a build(er).. Here
> > is my simple master.cfg file:
>
> You need a (non-Periodic) scheduler to link a source (SVNPoller in
> your case) to a Builder.
>
> --
> Scott Lamb <http://www.slamb.org/>
>



-- 
<admiral>

Michael F. March ----- mmarch at gmail.com
Ph: (415)462-1910 ---- Fax: (602)296-0400
P.O. Box 2254 ---- Phoenix, AZ 85002-2254
          "Seriously" - HSR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20070116/3ee5f4df/attachment.html>


More information about the devel mailing list