Created
February 28, 2011 05:41
-
-
Save tomprince/846983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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