[Buildbot-devel] How to pass some buildStep data to and email notification

Mikhail Sobolev mss at mawhrin.net
Tue Jan 20 17:06:52 UTC 2015


Hi Taras,

On Tue, Jan 20, 2015 at 06:16:17PM +0200, Taras Koroliuk wrote:
> My buildbot uploads build results to the ftp server with FileUpload step.
> I'm using Interpolate() to generate ftp destination path.
> 
> I need to print this "ftp path" in email.
> 
> For example, how can I populate this data to mail notification handler
> given in documentation?
> 
>     def html_message_formatter(mode, name, build, results, master_status):
>           ....
One option is to set a property with the path before file upload, so then
you'll use it in the file upload itself and in your formatter.

Another option is if you set a URL in your FileUpload step, you can find this
step in your message formating function and extract the URL from there.

Hope this helps,

-- 
Misha




More information about the devel mailing list