[Buildbot-devel] Extending buildbot to transmit xml result to the master

Charles Lepple clepple at gmail.com
Wed Oct 7 23:17:28 UTC 2009


On Wed, Oct 7, 2009 at 10:20 AM, Andy Howell wrote:
>        I'm quite new to buildbot. I've been experimenting with some code to upload a binary
> distribution after a build:
>
> class DistFileUpload(FileUpload):
>     def __init__(self, slavesrc, masterdest,
>                  workdir=None, maxsize=None, blocksize=16*1024, mode=None,
>                  **kwargs):
>         FileUpload.__init__(self, slavesrc, masterdest,
>                             workdir, maxsize, blocksize, mode,
>                             **kwargs)
>
>     def finished(self, result):
>  #       if result == SUCCESS:
>         buildnumber = self.getProperty("buildnumber")
>         buildername = self.getProperty("buildername")
>         url = "http://<hostname>/hello-%s-%s.tar" % (buildnumber, buildername)
>         self.addURL("Binary",url)

Anthony,

The portion of Andy's DistFileUpload class that you will be most
interested in is that last pair of lines, where it calls
self.addURL().

-- 
- Charles Lepple




More information about the devel mailing list