[Buildbot-devel] scheduler for trunk branch ERROR: "assert branch is not a branch"
Dustin J. Mitchell
dustin at v.igoro.us
Sat Feb 23 15:20:21 UTC 2013
You want branches=['trunk'] instead. That error message could, uh, be
more helpful! Can you file a bug to fix it?
Dustin
On Thu, Feb 21, 2013 at 10:33 AM, Sarah Addis <sarahaddis3 at gmail.com> wrote:
> 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
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
More information about the devel
mailing list