[Buildbot-devel] using a poller only for polling one or several files

tom fogal tfogal at sci.utah.edu
Thu Feb 3 16:30:47 UTC 2011


Pavel Berdnikov <pavel.berdnikov at gmail.com> writes:
> I have a big SVN repository and I have a problem:
> I don=92t want to use SVN poller for polling whole SVN repository, there
> are a lot of changes and I=92d like to start a build by changing single
> file. Is it possibly in BuildBot?

I'm not sure I understand the use case, but you could do this by
attaching a fileIsImportant method to your Scheduler, and leaving the
SVNPoller polling the actual repo instead of a subfile.

-tom

> I tried to set svnurl in the SVNPoller to the single file, but I
> received a error:
> 
> master.cfg:
> svn_poller =3D SVNPoller(
>                     svnurl=3D'http://svn.xxx.com/yyy/trunk/builds.log',
> =85=85.
> )
> 
> twistd.log:
> 2011-02-02 12:59:55+0300 [-] SVNPoller failed [Failure instance:
> Traceback: <type 'exceptions.AssertionError'>: filepath
> 'trunk/include/version.h' should start with prefix 'trunk/builds.log'
>         /localdisk/python-infra/install/lib/python2.7/site-packages/Twisted=
> -10.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:424:_startRunCallb=
> acks
>         /localdisk/python-infra/install/lib/python2.7/site-packages/Twisted=
> -10.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:441:_runCallbacks
>         /localdisk/python-infra/install/lib/python2.7/site-packages/Twisted=
> -10.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:397:_continue
>         /localdisk/python-infra/install/lib/python2.7/site-packages/Twisted=
> -10.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:363:unpause
>         --- <exception caught here> ---
>         /localdisk/python-infra/install/lib/python2.7/site-packages/Twisted=
> -10.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:441:_runCallbacks
>         /localdisk/python-infra/install/lib/python2.7/site-packages/buildbo=
> t-0.8.2-py2.7.egg/buildbot/changes/svnpoller.py:468:create_changes
>         /localdisk/python-infra/install/lib/python2.7/site-packages/buildbo=
> t-0.8.2-py2.7.egg/buildbot/changes/svnpoller.py:418:_transform_path
>         /localdisk/python-infra/install/lib/python2.7/site-packages/buildbo=
> t-0.8.2-py2.7.egg/buildbot/changes/svnpoller.py:21:_assert
>         ]
> 
> Thanks a lot for your help, Pavel
> 
> ---------------------------------------------------------------------------=
> ---
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires =
> 
> February 28th, so secure your free ArcSight Logger TODAY! =
> 
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> 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