[Buildbot-devel] Pass information from Trigger step to another

Olivier Trempe oliviertrempe at gmail.com
Tue Dec 17 20:35:43 UTC 2013


I am not sure I understand what you mean.

In "Builder3", I want to get the buildnumber and buildname of triggered
"Builder1" and pass them to "Builder2".

I know that I can use WithProperties (now Interpolate since WithProperties
is deprecated) to pass properties to "Builder2"

What I don't know is how to get these properties from a Trigger step from
within the factory assigned to "Builder3".

Can you provide me with a small example?

Thanks!




On Tue, Dec 17, 2013 at 2:15 PM, Marc-Antoine Ruel <maruel at chromium.org>wrote:

> You can use build properties that you pass along when you trigger the
> steps and then use WithProperties in the command line of the steps you call.
>
> ref: http://docs.buildbot.net/latest/manual/cfg-properties.html
>
> M-A
>
>
> 2013/12/17 Olivier Trempe <oliviertrempe at gmail.com>
>
>> Hello,
>>
>> I already found this thread (
>> http://sourceforge.net/mailarchive/message.php?msg_id=30096787) which
>> mentions the kind of feature I am looking for. It is now more than 1 year
>> old and I hope the solution exists now.
>>
>> My use case is the following
>> "Builder1": Builds an application and archive artifacts with a
>> DirectoryUpload step in a folder on the maser. The folder is named after
>> the build name and number. Can be executed on any slave.
>>
>> "Builder2": Download artifact from another builder based on build name
>> and number. Do something with artifacts. Can be executed on any slave.
>>
>> "Builder3": Trigger Builder1, then trigger Builder2 with build name and
>> number retrieved from first trigger step. Can be executed on any slave.
>>
>> Is there a way to retrieve parameter from a step and pass it to another?
>>
>> Thanks!
>>
>> Olivier Trempe
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20131217/7296452c/attachment.html>


More information about the devel mailing list