[Buildbot-devel] Buildtbot Factory steps

Alexander Lorenz lorenz at testingtech.de
Tue Mar 28 12:37:44 UTC 2006


hi,

in case that's not possible in  a built-in way, you could always use 
files to pass information between steps, e.g. step 1 writes an id file, 
and step 2 reads it again.


regards

lx



Tony Walker wrote:
> Hi,
>
> I wonder if you could help me with a little problem. In my factory (in 
> factory.py) I have several steps, as shown below, but I want to know 
> how I pass the 'returned' result from one step, and pass it into the 
> next step. For example, I would like to create a buildId unique to 
> each slave, which I can then pass into the compile step (as our code 
> can take a build id parameter)
>
> The current steps look like this:
>
>        self.steps.append(s(step.getBuildId))
>        self.steps.append(s(step.Compile, command=qmake_a, env=env))
>        self.steps.append(s(step.Compile, command=nmake_a, env=env))
>
> What I would sort of like is:
>
>        buildId = self.steps.append(s(step.getBuildId)) # i.e the 
> returned result from this step
>        self.steps.append(s(step.Compile, command=qmake_a, buildId, 
> env=env)) # and pass it into this step.
>        self.steps.append(s(step.Compile, command=nmake_a, env=env))
>
> Can you suggest anything?
>
> Best Regards,
>
> Tony.
>





More information about the devel mailing list