[Buildbot-devel] accessing slave homedir in master?

Jimmy John jimmyj_in at yahoo.com
Thu Sep 18 20:11:57 UTC 2008


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


      




More information about the devel mailing list