[Buildbot-devel] file upload code

Bailey, Darragh dbailey at hp.com
Mon Jun 30 17:37:51 UTC 2008


Ah, thanks, that should do the trick.

Was only looking at the api docs on the main site, so didn't spot that there was actually now a proper step to take care of this.

Don't suppose you put up the corresponding api docs for your patched versions do you?

--
Regards,
Darragh Bailey

Systems Software Engineer
Hewlett Packard Galway Ltd.
+353 91 75-4674

Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park, Galway
Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's Quay Dublin 2
Registered Number: 361933

_______________________________________________
The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error you should delete it from your system immediately and advise the sender.
To any recipient of this message within HP, unless otherwise stated you should consider this message and attachments as "HP CONFIDENTIAL".


> -----Original Message-----
> From: djmitche at gmail.com [mailto:djmitche at gmail.com] On Behalf Of Dustin
> J. Mitchell
> Sent: 30 June 2008 17:55
> To: Bailey, Darragh
> Cc: buildbot-devel at lists.sourceforge.net
> Subject: Re: [Buildbot-devel] file upload code
>
> On Mon, Jun 30, 2008 at 12:22 PM, Bailey, Darragh <dbailey at hp.com> wrote:
> > What I'm not clear about is how exactly I should be feeding the output
> of the RemoteShellCommand into a setProperty function call and use that to
> set the name of the file to retrieve.
>
> There's a SetProperty step that can do this:
>
> @bsindex buildbot.steps.shell.SetProperty
>
> This buildstep is similar to ShellCommand, except that it captures the
> output of the command into a property.  It is usually used like this:
>
> @example
> f.addStep(SetProperty(command="uname -a", property="uname"))
> @end example
>
> This runs @code{uname -a} and captures its stdout, stripped of leading
> and trailing whitespace, in the property "uname".  To avoid stripping,
> add @code{strip=False}.  The @code{property} argument can be specified
> as a @code{WithProperties} object.
>
>
> Then you can just use a WithProperties object in your FileUpload script.
>
> Dustin
>
> --
> Storage Software Engineer
> http://www.zmanda.com




More information about the devel mailing list