[Buildbot-devel] slave os.environ['HOME']

Steve 'Ashcrow' Milner smilner at redhat.com
Tue Jun 23 13:50:37 UTC 2009


On 23/06/09 14:08 +0200, Ryan Raasch wrote:
>I am trying to get the "home" shell variable from the remote machine.
>
>When starting the buildbot master, the os.environ['HOME'] returns the 
>master's home, which i do not want. I have not been able to find the 
>function call in the source.
>
>How do i get the os.environ['HOME'] from the slave, (at runtime)?
>
>
>Thanks,
>Ryan

You could probably use buildbot.steps.transfer.RemoteCommand ..

"""
I represent a single command to be run on the slave. I handle the
details of reliably gathering status updates from the slave (acknowledging
each), and (eventually, in a future release) recovering from interrupted
builds. This is the master-side object that is known to the slave-side
L{buildbot.slave.bot.SlaveBuilder}, to which status updates are
sent.
"""

or write a command that simply runs what you want on the slave.

I hope that helps. Let me know if that doesn't answer your question.
-- 
kthxbye!
Steve 'Ashcrow' Milner
Agent of Infosec
IRC: ashcrow
GnuPG ID: 28DFD4BE

"In the heat of conversation I may have said certain things I believe 
to be untrue. The alleged lie that you might have heard me saying 
allegedly moments ago ... that's a parasite that lives in my neck." 
     -- Tad Ghostal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20090623/bbeede44/attachment.bin>


More information about the devel mailing list