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

claude vittoria vittoric at wanadoo.fr
Wed Jul 30 17:49:05 UTC 2008


Hi,

I know nothing in python. I m not sure that the master.cfg is called 
after that buildmaster started.

You can parse the log of the vcs to find the revision in your shell 
script. (eg svn log | head -n1 | sed ...). (yes I do it for real)

My 2c,
Claude


John Stile a écrit :
> I really need some hint where to start looking to solve this problem.
> When one enters a revision and branch on 'force build', what part of
> buildbot code processes it?  
> What do I have to 'import from' to attain access to the entered revision
> and branch?
> I am learning python, but the most confusing part is figuring out what
> objects have access to the target data.
>
> On Mon, 2008-07-28 at 13:35 -0700, John Stile wrote:
>   
>> I probably shouldn't have posted right before the party.
>>
>> Could someone show me how to configure master.conf to capture the
>> "Branch to build:", from the force build form, into a variable?
>>
>> On Thu, 2008-07-24 at 17:06 -0700, John Stile wrote:
>>     
>>> 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.
>>>       
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>     
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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