[Buildbot-devel] linking an image created during a buildstep in the waterfall?

Marcus Lindblom macke at yar.nu
Tue Jan 19 08:55:56 UTC 2010


On 2010-01-19 01:52, Don Fike wrote:
>
> I have a buildstep that calls a simple shell script that generates a png
> chart.  I would like to link to this chart.png in the waterfall.
> I tried using logfiles={"chart": "chart.png"}, which works, however the
> chart is displayed in ASCII instead of an image.
> I guess I need to use addURL but I'm not sure how to go about this.
 >
> Can someone suggest the best approach for linking to a png, generated on
> a slave, within the waterfall display for that step?

1. logfiles don't work for non-text as they always send content-type = 
text/plain or text/html. (That could probably be changed by adding a 
extension -> mime-type mapper, but that is a bit unreliable)

2. for addURL to work, you need an url. So a FileUploadStep is probably 
necessary to upload the file to master first, then you can add an url to 
it. I think that's how it's supposed to work. Others may help more here.

3. It'd be cool if we had "logitems" that supported any mime-type 
specified in config (i.e. logitems = {'chart': ('chart.png','image/png') }).

Cheers.
/Marcus





More information about the devel mailing list