[Buildbot-devel] help with Python and Property
Tom Prince
tom.prince at ualberta.net
Fri Sep 23 22:39:35 UTC 2011
Completely untested:
class CheckH4Slavename(BuildStep):
renderables = [ "slavename" ]
slavename = Property("slavename")
def start(self):
ghs_lmhost = "10.99.59.10"
ghs_lmport = "2010"
if re.search("bigbuild", self.slavename):
ghs_lmhost = "localhost"
ghs_lmport = ""
properties = self.build.getProperties()
properties.setProperty("GHS_LM_HOST", ghs_lmhost, "CheckH4Slavename", runtime=True)
properties.setProperty("GHS_LM_Port", ghs_lmport, "CheckH4Slavename", runtime=True)
More information about the devel
mailing list