[Buildbot-devel] Transfering files inside a build step

Andrew Melo andrew.m.melo at vanderbilt.edu
Fri Jan 15 23:28:03 UTC 2010


On Fri, Jan 15, 2010 at 5:26 PM, Daniel Eggert <deggert at apple.com> wrote:
> On Jan 15, 2010, at 3:17 PM, Daniel Eggert wrote:
>
>> I need to transfer files inside a build step.
>>
>> My build step might generate crash logs (on the slave). I parse the stdio log for the paths to those logs, but how do I dynamically move them to the master?
>>
>> I have
>>
>> def createSummary(self, log):
>>       ShellCommand.createSummary(self, log)
>>       crashIndex = 0
>>       for crashLogPath in self.crashLogs:
>>               text = None
>>               try:
>>                       with open(crashLogPath, 'r') as f:
>>                               text = f.read()
>>               except:
>>                       pass
>>               if text is not None:
>>                       crashIndex += 1
>>                       name = "Crash"
>>                       if (crashIndex > 1):
>>                               name = "Crash {0}".format(crashIndex)
>>                       self.addCompleteLog(name, text)
>>
>>
>> but the paths inside self.crashLogs are paths on the slave.
>>
>> /Daniel
>
>
> It seems to me that I should use a RemoteShellCommand(), but I am clueless as to how to integrate that into my build step during createSummary().

you could set a property with the path to the log you want, and then
later use that property in the upload step

>
> /Daniel
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>



-- 
--
Andrew Melo




More information about the devel mailing list