[Buildbot-devel] accessing slave homedir in master?
Neil Hemingway
neil.hemingway at googlemail.com
Thu Sep 18 20:21:31 UTC 2008
What are you trying to achieve?
Steps execute on the slave with their working directory being the top level
directory of the code checkout.
2008/9/18 Jimmy John <jimmyj_in at yahoo.com>
> Is there any way to run a command and pass as argument the slave's home
> dir...
>
> eg. if i want to run a command to create a dir at the slave home e.g.
>
> f.addStep(shell.ShellCommand(name="creating new dir",
> haltOnFailure=True,
> command=["mkdir", "-p",
> "$HOME/xxx_buildbot/%s" % dir_builder_name],
> workdir="build/splunk/current",
> description=["creating new dir"],
> descriptionDone=["created new dir"],
> timeout=120))
>
>
> does not give me what i want....it creates a dir called '$HOME'...any way i
> can get the environment variables expanded before they get used....
>
>
>
> mkdir -p $HOME/xxx_buildbot/Slave2_-_SunOS_-_perforce_nightly_tests
> in dir
> /home/slave/xxxtest/perforce_nightly_tests/run_data/slave2/build/xxx/current
> (timeout 120 secs)
> watching logfiles {}
>
> argv: ['mkdir', '-p',
> '$HOME/xxx_buildbot/Slave2_-_SunOS_-_perforce_nightly_tests']
>
>
>
>
> Thanks
> Jimmy
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20080918/92854f79/attachment.html>
More information about the devel
mailing list