Skip to content

Instantly share code, notes, and snippets.

@tomprince
Created February 28, 2011 05:41
Show Gist options
  • Save tomprince/846983 to your computer and use it in GitHub Desktop.
Save tomprince/846983 to your computer and use it in GitHub Desktop.
diff --git a/master/buildbot/process/build.py b/master/buildbot/process/build.py
index 3ff063d..e0f533f 100644
--- a/master/buildbot/process/build.py
+++ b/master/buildbot/process/build.py
@@ -183,6 +183,12 @@ class Build:
# object that came from the config, and get its properties
buildslave_properties = slavebuilder.slave.properties
self.getProperties().updateFromProperties(buildslave_properties)
+ try:
+ from twisted.python.reflect import namedModule
+ path = namedModule(slavebuilder.slave.slave_system + "path") # only works with posix/win32 slaves
+ self.setProperty("workdir", path.join(slavebuilder.slave.slave_basedir, self.builder.slavebuilddir), "slave")
+ except:
+ log.err(Failure())
self.slavename = slavebuilder.slave.slavename
self.build_status.setSlavename(self.slavename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment