[Buildbot-devel] scheduler for trunk branch ERROR: "assert branch is not a branch"

Sarah Addis sarahaddis3 at gmail.com
Thu Feb 21 15:33:04 UTC 2013


I am trying to add a scheduler for a trunk branch, I don't understand the
error I am getting "assert branch is NotABranch" , should I be looking to
use another type of scheduler for this?

My code in Master.cfg:

c['schedulers'].append(AnyBranchScheduler(
                            name="trunk",
                            treeStableTimer=30,
                            change_filter=ChangeFilter(
                            branch=['trunk']),
                            builderNames=['trunkBuilder']
                                         ))


The branch "trunk" I am trying to check out ::
http://svnname.lan/svn/branch/branch/trunk



Traceback:

[-] beginning configuration update
 [-] Loading configuration from '/home/lbuilder/buildbot/master.cfg'
 [-] Unhandled Error
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/buildbot/master.py", line 244,
in reconfig
        d = self.doReconfig()
      File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py",
line 702, in unwindGenerator
        return _deferGenerator(f(*args, **kwargs), Deferred())
      File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py",
line 605, in _deferGenerator
        result = g.next()
      File "/usr/lib/python2.6/site-packages/buildbot/master.py", line 269,
in doReconfig
        self.configFileName)
    --- <exception caught here> ---
      File "/usr/lib/python2.6/site-packages/buildbot/config.py", line 144,
in loadConfig
        exec f in localDict
      File "/home/lbuilder/buildbot/master.cfg", line 67, in <module>
        #        return None
      File "/usr/lib/python2.6/site-packages/buildbot/schedulers/basic.py",
line 57, in __init__
        categories=categories)
      File "/usr/lib/python2.6/site-packages/buildbot/schedulers/basic.py",
line 254, in getChangeFilter
        assert branch is NotABranch
    exceptions.AssertionError:

 [-] error while parsing config file:  (traceback in logfile)
 [-] reconfig aborted without making any changes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130221/96b7cd86/attachment.html>


More information about the devel mailing list