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

Charles Lepple clepple at gmail.com
Tue Aug 5 03:27:18 UTC 2008


On Wed, Jul 30, 2008 at 5:48 PM, John Stile <john at stilen.com> wrote:
> h = factory.BuildFactory()
> h.addStep(shell.ShellCommand,
>          command=["/home/build/bin/build_myproject.bash",
>          my_branch,
>          my_revision]
>         )

What if you were to change the command= to something like:

command = ["/home/build/bin/build_myproject.bash", WithProperties("-b
branches/%(branch)s"), WithProperties("-r %(revision)%s")]

You could then add the default branch/revision logic inside the script.

-- 
- Charles Lepple




More information about the devel mailing list