[Buildbot-devel] Using "Branch to build: " in master.cfg

John Stile john at stilen.com
Fri Jul 25 00:06:35 UTC 2008


How do I assign the value sent in "Branch to build:", for the force
build form, to a variable in master.conf?  

I'm not a python programmer, but I have learned some basics.

My build factory looks like this:
        from buildbot.steps import source, shell
        from buildbot.process import factory
        f = factory.BuildFactory()
        f.addStep(shell.ShellCommand,
        command=["/home/builder/bin/build_script.bash" ])

I would like to assign a variable the specified branch from the web
form, and feed that variable as an option to the build_script.bash
script.





More information about the devel mailing list