Search code examples
svnredhatbuildbot

Alternative for svn_buildbot.py that does not require twisted?


I am running some Continuous Integration servers. Source repository is hosted on Subversion, and buildbot does the job of compiling and testing after every commit. My trouble is that I had recently to migrate the SVN server to a RedHat5 system. RedHat5 does not distribute twisted, nor zope (essential components of buildbot). Thus, the post-commit hook script of SVN cannot run svn_buildbot.py, the script that triggers the buildbot after each commit.

Does anyone knows about an alternative to the svn_builbot.py script that could trigger the buildbot, but that does not require twisted and zope?


Solution

  • If you're using buildbot >0.8.2, you can enable the change_hook feature in WebStatus and use post_build_request.py in your SVN post_commit script to trigger the build via an HTTP request.

    If you're stuck with an older version of buildbot or cannot enable change_hook for security reasons, then I'd say your options are:

    • Using SVNpoller to have the buildbot master poll your SVN server for changes
    • Have your post-commit hook send emails to your buildbot master host, then use SVNCommitEmailMailDirSource.
    • Compile Twisted from source. I've deployed several buildbot installations on RHEL4 and RHEL5 servers this way without any issues.