[Buildbot-devel] Executing a build depending on two repositories update

Esther Baruk esther.baruk at lexifi.com
Tue Nov 6 15:14:11 UTC 2012


Le 06/11/2012 15:09, Dustin J. Mitchell a écrit :
> On Tue, Nov 6, 2012 at 9:04 AM, Esther Baruk <esther.baruk at lexifi.com> wrote:
>> So with the configuration detailed above, when the tests target is launched,
>> there are two updates that are done but both of them in R2 repository...
> Ah, ok -- I think the problem is that you'll need to specify different
> workdirs for those steps.  As it is, it's doing what you've asked,
> which is to first update 'build' from R2, then from R1.  That's just
> not what you meant!
>
> Dustin
Right, my problem was in the specification of the workdir.
So I implemented a function taking a source_stampas a parameter and 
returning the right workdir depending on the repository.
I  followed the example from the documentation at 
http://buildbot.net/buildbot/docs/current/manual/customization.html#factory-workdir-functions

def workdir(source_stamp):
     if (source_stamp.repository == "R1_url"):
         return "R1"
     elif (source_stamp.repository == "R2_url"):
         return "R2"

testsFactory.workdir=workdir

But I read that the source_stamp parameter type has changed and that it 
is now a list of source_stamp. How am I supposed to know which element 
should be picked from the list?

-- 
Esther Baruk
<http://www.lexifi.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20121106/c0336125/attachment.html>


More information about the devel mailing list