[Buildbot-devel] Buildbot 0.7.11p3 / Perforce

Chris Lees clees at ittvis.com
Mon Nov 23 23:42:29 UTC 2009


Hi List Members, 

 

Below is an example of one perforce poller watching a projects directory
within the projects directory there are two branches. Branch one is
trunk and branch two is integration, under each branch is ProjectA which
contains similar source and is the same project. Trunk contains a stable
version of ProjectA and Integration contains a constantly modified
version of ProjectA. If I only want to fire off the Integration
scheduler when a submit changes for that particular branch what should
below look like?

 

Currently what happens is all schedules watching branches with similar
directory structures get fired off causing all builders to start
building.

 

poller = P4Source(p4base='//depot/projects/', p4port=p4env['port'],
p4user=p4env['user'],

                      p4passwd=p4env['passwd'],
p4bin='/rserver/local/linux/x86/bin/p4',

                      pollinterval = 60, split_file=lambda branchfile:
branchfile.split('/',1),)

 

Trunk = Scheduler(name="Trunk",

                           branch='trunk/ProjectA',

                           treeStableTimer=30, 

                           builderNames='TrunkBuilders')

 

Integration = Scheduler(name="Integration",

                           branch='integration/ProjectA',

                           treeStableTimer=30, 

                           builderNames='IntegrationBuilders')

 

Any help offered is appreciated all I really care to do is get a handle
on the change sent to the change master and trigger the correct
scheduler based on the branch with the change.

 

Thanks 

Chris Lees

clees at ittvis.com

Engineer

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20091123/eb6814b8/attachment.html>


More information about the devel mailing list