[Buildbot-commits] buildbot/buildbot buildslave.py,1.11,1.12

Brian Warner warner at users.sourceforge.net
Wed Jun 25 23:52:42 UTC 2008


Update of /cvsroot/buildbot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26409/buildbot

Modified Files:
	buildslave.py 
Log Message:
[project @ #278:enhancedBuildSlavesPage-v2.diff]
short patch by Ben Hearsum to make the /buildslaves WebStatus? page
a little more useful. It does do things: 1) bolds the 'slave is NOT
connected' line to make it more visible 2) shows whether each slave
is busy (building) or not

Original author: dustin at v.igoro.us
Date: 2008-06-01 17:34:09+00:00

Index: buildslave.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/buildslave.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- buildslave.py	22 May 2008 22:13:06 -0000	1.11
+++ buildslave.py	25 Jun 2008 23:52:40 -0000	1.12
@@ -96,6 +96,12 @@
             return self.sendBuilderList()
         return defer.succeed(None)
 
+    def updateSlaveStatus(self, buildStarted=None, buildFinished=None):
+        if buildStarted:
+            self.slave_status.buildStarted(buildStarted)
+        if buildFinished:
+            self.slave_status.buildFinished(buildFinished)
+
     def attached(self, bot):
         """This is called when the slave connects.
 





More information about the Commits mailing list